diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-07-09 19:37:00 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-07-09 19:37:00 +0000 |
commit | b669221bd1de1343a0a86c851a2d45ba979d19c1 (patch) | |
tree | 977c4c118e129f49148e582b3622790fb639f42f | |
parent | 10de93a715ecf1f1829cf65ca275c0adc0db7c01 (diff) | |
download | cpython-git-b669221bd1de1343a0a86c851a2d45ba979d19c1.tar.gz |
be more robust across platforms
-rw-r--r-- | Lib/test/test_structseq.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_structseq.py b/Lib/test/test_structseq.py index 417b52147f..d6c63b792f 100644 --- a/Lib/test/test_structseq.py +++ b/Lib/test/test_structseq.py @@ -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) |