File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -723,10 +723,11 @@ def test_attributes(self):
723
723
self .assertIsInstance (sys .float_repr_style , str )
724
724
self .assertIn (sys .float_repr_style , ('short' , 'legacy' ))
725
725
if not sys .platform .startswith ('win' ):
726
- self .assertIsInstance (sys .abiflags , str )
727
- # test hasattr(sys, 'abiflags') == (os.name != 'nt)
728
726
self .assertEqual (os .name , 'posix' )
727
+ self .assertIsInstance (sys .abiflags , str )
729
728
else :
729
+ self .assertEqual (os .name , 'nt' )
730
+ # TODO: sys.abiflags will be defined on Windows in Python 3.16.
730
731
absent = object ()
731
732
with self .assertWarnsRegex (
732
733
DeprecationWarning ,
@@ -750,9 +751,6 @@ def test_attributes(self):
750
751
):
751
752
_ = sys .abiflags
752
753
753
- # test hasattr(sys, 'abiflags') == (os.name != 'nt)
754
- self .assertEqual (os .name , 'nt' )
755
-
756
754
def test_thread_info (self ):
757
755
info = sys .thread_info
758
756
self .assertEqual (len (info ), 3 )
You can’t perform that action at this time.
0 commit comments