We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 102569d commit d91ddffCopy full SHA for d91ddff
Lib/test/test_os.py
@@ -3129,10 +3129,9 @@ def cleanup():
3129
if support.verbose:
3130
print(" without access:", stat2)
3131
3132
- # We cannot get st_dev/st_ino, so ensure those are 0 or else our test
3133
- # is not set up correctly
3134
- self.assertEqual(0, stat2.st_dev)
3135
- self.assertEqual(0, stat2.st_ino)
+ # We may not get st_dev/st_ino, so ensure those are 0 or match
+ self.assertIn(stat2.st_dev, (0, stat1.st_dev))
+ self.assertIn(stat2.st_ino, (0, stat1.st_ino))
3136
3137
# st_mode and st_size should match (for a normal file, at least)
3138
self.assertEqual(stat1.st_mode, stat2.st_mode)
0 commit comments