mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
be more robust across platforms
This commit is contained in:
parent
10de93a715
commit
b669221bd1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user