Skip to content

Commit 6e72952

Browse files
committed
Changed the asyncio full tests to pass only in python >= 3.4
1 parent 51c33e3 commit 6e72952

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mypy/test/testpythoneval.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525

2626
# Files which contain test case descriptions.
2727
python_eval_files = ['pythoneval.test',
28-
'python2eval.test',
29-
'pythoneval-asyncio.test']
28+
'python2eval.test']
29+
30+
python_34_eval_files = ['pythoneval-asyncio.test']
3031

3132
# Path to Python 3 interpreter
3233
python3_path = 'python3'
@@ -40,6 +41,10 @@ def cases(self):
4041
for f in python_eval_files:
4142
c += parse_test_cases(os.path.join(test_data_prefix, f),
4243
test_python_evaluation, test_temp_dir, True)
44+
if sys.version_info.major == 3 and sys.version_info.minor >= 4:
45+
for f in python_34_eval_files:
46+
c += parse_test_cases(os.path.join(test_data_prefix, f),
47+
test_python_evaluation, test_temp_dir, True)
4348
return c
4449

4550

0 commit comments

Comments
 (0)