Skip to content

Commit 96b224d

Browse files
committed
Update tests
1 parent a4c575b commit 96b224d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Lib/test/test_sys.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -723,10 +723,11 @@ def test_attributes(self):
723723
self.assertIsInstance(sys.float_repr_style, str)
724724
self.assertIn(sys.float_repr_style, ('short', 'legacy'))
725725
if not sys.platform.startswith('win'):
726-
self.assertIsInstance(sys.abiflags, str)
727-
# test hasattr(sys, 'abiflags') == (os.name != 'nt)
728726
self.assertEqual(os.name, 'posix')
727+
self.assertIsInstance(sys.abiflags, str)
729728
else:
729+
self.assertEqual(os.name, 'nt')
730+
# TODO: sys.abiflags will be defined on Windows in Python 3.16.
730731
absent = object()
731732
with self.assertWarnsRegex(
732733
DeprecationWarning,
@@ -750,9 +751,6 @@ def test_attributes(self):
750751
):
751752
_ = sys.abiflags
752753

753-
# test hasattr(sys, 'abiflags') == (os.name != 'nt)
754-
self.assertEqual(os.name, 'nt')
755-
756754
def test_thread_info(self):
757755
info = sys.thread_info
758756
self.assertEqual(len(info), 3)

0 commit comments

Comments
 (0)