]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
be more robust across platforms
authorBenjamin Peterson <benjamin@python.org>
Fri, 9 Jul 2010 19:37:00 +0000 (19:37 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 9 Jul 2010 19:37:00 +0000 (19:37 +0000)
Lib/test/test_structseq.py

index 417b52147f6b9ab313c7b6bd8a49a91b60debe89..d6c63b792fe0432eb9de54ba4bed0fd72763a7f7 100644 (file)
@@ -38,7 +38,7 @@ class StructSeqTest(unittest.TestCase):
         # os.stat() gives a complicated struct sequence.
         st = os.stat(__file__)
         rep = repr(st)
-        self.assertTrue(rep.startswith("posix.stat_result"))
+        self.assertTrue(rep.startswith(os.name + ".stat_result"))
         self.assertIn("st_mode=", rep)
         self.assertIn("st_ino=", rep)
         self.assertIn("st_dev=", rep)