Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_structseq.py @ 62905:c70d50d21f85
be more robust across platforms
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Fri, 09 Jul 2010 19:37:00 +0000 |
| parents | 0e782a6e6bb7 |
| children | 3b5545ba6432 |
line wrap: on
line diff
--- a/Lib/test/test_structseq.py Fri Jul 09 19:25:48 2010 +0000 +++ b/Lib/test/test_structseq.py Fri Jul 09 19:37:00 2010 +0000 @@ -38,7 +38,7 @@ # 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)
