Skip to content

Commit 779532b

Browse files
committed
Fix test_stat if the _stat extension is missing
1 parent ceec41a commit 779532b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_stat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ def test_file_attribute_constants(self):
238238
self.assertEqual(value, modvalue, key)
239239

240240

241+
@unittest.skipIf(c_stat is None, 'need _stat extension')
241242
class TestFilemodeCStat(TestFilemode, unittest.TestCase):
242243
statmod = c_stat
243244

0 commit comments

Comments
 (0)