Refactoring is not allowed for environments and the current version lower than 3.6

This commit is contained in:
Dave Halter committed 2020-02-27 23:24:23 +01:00
1 parent 4451d2fec7
commit 1f773d8e65
3 files changed
+14 -7

No files matched your search

+4
View File
@@ -1,4 +1,5 @@
import os
import sys
import pytest
@@ -62,6 +63,9 @@ def test_refactor(refactor_case, skip_pre_python36, environment):
:type refactor_case: :class:`.refactor.RefactoringCase`
"""
if sys.version_info < (3, 6):
pytest.skip()
if refactor_case.type == 'error':
with pytest.raises(RefactoringError) as e:
refactor_case.refactor(environment)