File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44import itertools
55import logging
6- import sys
76import unittest
87
98from argunparse .argument_unparser import ArgumentUnparser
@@ -117,13 +116,11 @@ def test_unparse(self):
117116 result = unparser .unparse (* args , ** options )
118117 for item in itertools .chain (reference_options , reference_args ):
119118 self .assertIn (item , result )
120- if sys .version_info [:2 ] >= (3 , 6 ):
121- self .assertEqual (
122- ' ' .join (itertools .chain (reference_options , reference_args )), result )
119+ self .assertEqual (
120+ ' ' .join (itertools .chain (reference_options , reference_args )), result )
123121 list_result = unparser .unparse_to_list (* args , ** options )
124122 self .assertSetEqual (set (reference_options + reference_args ), set (list_result ))
125- if sys .version_info [:2 ] >= (3 , 6 ):
126- self .assertListEqual (reference_options + reference_args , list_result )
123+ self .assertListEqual (reference_options + reference_args , list_result )
127124
128125 def test_unparse_nothing (self ):
129126 unparser = ArgumentUnparser ()
You can’t perform that action at this time.
0 commit comments