Remove most version_info.major usages

This commit is contained in:
Dave Halter committed 2020-07-02 03:00:01 +02:00
1 parent 188fdcd34f
commit 6e184bca97
16 files changed
+26 -95

No files matched your search

+1 -3
View File
@@ -337,9 +337,7 @@ def test_fuzzy_completion(Script):
def test_math_fuzzy_completion(Script, environment):
script = Script('import math\nmath.og')
expected = ['copysign', 'log', 'log10', 'log1p']
if environment.version_info.major >= 3:
expected.append('log2')
expected = ['copysign', 'log', 'log10', 'log1p', 'log2']
completions = script.complete(fuzzy=True)
assert expected == [comp.name for comp in completions]
for c in completions: