File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 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):
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 )
You can’t perform that action at this time.
0 commit comments