Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -3121,10 +3121,9 @@ def cleanup():
if support.verbose:
print(" without access:", stat2)

# We cannot get st_dev/st_ino, so ensure those are 0 or else our test
# is not set up correctly
self.assertEqual(0, stat2.st_dev)
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))

# st_mode and st_size should match (for a normal file, at least)
self.assertEqual(stat1.st_mode, stat2.st_mode)
Expand Down