Commit b669221b authored by Benjamin Peterson's avatar Benjamin Peterson

be more robust across platforms

parent 10de93a7
...@@ -38,7 +38,7 @@ class StructSeqTest(unittest.TestCase): ...@@ -38,7 +38,7 @@ class StructSeqTest(unittest.TestCase):
# os.stat() gives a complicated struct sequence. # os.stat() gives a complicated struct sequence.
st = os.stat(__file__) st = os.stat(__file__)
rep = repr(st) 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_mode=", rep)
self.assertIn("st_ino=", rep) self.assertIn("st_ino=", rep)
self.assertIn("st_dev=", rep) self.assertIn("st_dev=", rep)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment