Skip to content

Commit 205d256

Browse files
authored
[mypyc] Remove unnecessary max call for python version (#12848)
We don't support running on Python 3.5 or lower anymore, so the max call is unnecessary because the current version will always be greater than or equal to (3, 6).
1 parent 19e9f21 commit 205d256

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypyc/test/test_run.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,7 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) ->
174174
options.use_builtins_fixtures = True
175175
options.show_traceback = True
176176
options.strict_optional = True
177-
# N.B: We try to (and ought to!) run with the current
178-
# version of python, since we are going to link and run
179-
# against the current version of python.
180-
# But a lot of the tests use type annotations so we can't say it is 3.5.
181-
options.python_version = max(sys.version_info[:2], (3, 6))
177+
options.python_version = sys.version_info[:2]
182178
options.export_types = True
183179
options.preserve_asts = True
184180
options.incremental = self.separate

0 commit comments

Comments
 (0)