summaryrefslogtreecommitdiff
path: root/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-12-18 23:44:57 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-12-18 23:44:57 +0100
commit23818c3c4e540c673edf6784b7d97cbc95bfc6b1 (patch)
tree3d72805414ad390542cd5e0a06e87de0e3aa7b3a /asyncio
parent942933b03eb61f8965306dd9c66486ee0933c45d (diff)
downloadtrollius-23818c3c4e540c673edf6784b7d97cbc95bfc6b1.tar.gz
support: fix assert_python_ok() on python 3.3
Python 3.3 doesn't support the -I command line option (isolated mode).
Diffstat (limited to 'asyncio')
-rw-r--r--asyncio/test_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/asyncio/test_support.py b/asyncio/test_support.py
index c9df5d0..fab1f80 100644
--- a/asyncio/test_support.py
+++ b/asyncio/test_support.py
@@ -40,7 +40,7 @@ def _assert_python(expected_success, *args, **env_vars):
else:
isolated = not env_vars
cmd_line = [sys.executable, '-X', 'faulthandler']
- if isolated:
+ if isolated and sys.version_info >= (3, 4):
# isolated mode: ignore Python environment variables, ignore user
# site-packages, and don't add the current directory to sys.path
cmd_line.append('-I')