@@ -773,27 +773,26 @@ def test_invocation(self):
773773 self .invoke_platform (* combination )
774774
775775 def test_arg_parsing (self ):
776- # Due to backwards compatibility, the `aliased` and `terse` parameters
777- # are computed based on a combination of positional arguments and flags.
776+ # For backwards compatibility, the `aliased` and `terse` parameters are
777+ # computed based on a combination of positional arguments and flags.
778778 #
779- # This test tests that the arguments are correctly passed to the underlying
780- # `platform.platform()` call. The parameters are two booleans for `aliased`
781- # and `terse`.
779+ # Test that the arguments are correctly passed to the underlying
780+ # `platform.platform()` call.
782781 options = (
783- (["--nonaliased" ], ( False , False ) ),
784- (["nonaliased" ], ( False , False ) ),
785- (["--terse" ], ( True , True ) ),
786- (["terse" ], ( True , True ) ),
787- (["nonaliased" , "terse" ], ( False , True ) ),
788- (["--nonaliased" , "terse" ], ( False , True ) ),
789- (["--terse" , "nonaliased" ], ( False , True ) ),
782+ (["--nonaliased" ], False , False ),
783+ (["nonaliased" ], False , False ),
784+ (["--terse" ], True , True ),
785+ (["terse" ], True , True ),
786+ (["nonaliased" , "terse" ], False , True ),
787+ (["--nonaliased" , "terse" ], False , True ),
788+ (["--terse" , "nonaliased" ], False , True ),
790789 )
791790
792- for flags , args in options :
793- with self .subTest (flags = flags , args = args ):
791+ for flags , aliased , terse in options :
792+ with self .subTest (flags = flags , aliased = aliased , terse = terse ):
794793 with mock .patch .object (platform , 'platform' ) as obj :
795794 self .invoke_platform (* flags )
796- obj .assert_called_once_with (* args )
795+ obj .assert_called_once_with (aliased , terse )
797796
798797 def test_help (self ):
799798 output = io .StringIO ()
0 commit comments