From 49b1c385352c631225ac286d65284097a0c05595 Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Tue, 29 Dec 2015 14:35:19 +0300 Subject: [PATCH] Asyncio appeared only in python3.4 and temporary dont run tests on Iron python (PY-18078) --- python/helpers/pydev/pydevd.py | 2 +- python/helpers/pydev/pydevd_constants.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/python/helpers/pydev/pydevd.py b/python/helpers/pydev/pydevd.py index 6bedfd61a8fe..6755ba14483a 100644 --- a/python/helpers/pydev/pydevd.py +++ b/python/helpers/pydev/pydevd.py @@ -2396,7 +2396,7 @@ if __name__ == '__main__': if setup['save-threading']: debugger.thread_analyser = ThreadingLogger() if setup['save-asyncio']: - if IS_PY3K: + if IS_PY34_OLDER: debugger.asyncio_analyser = AsyncioLogger() try: diff --git a/python/helpers/pydev/pydevd_constants.py b/python/helpers/pydev/pydevd_constants.py index b7960c13d836..1fa374f8b56d 100644 --- a/python/helpers/pydev/pydevd_constants.py +++ b/python/helpers/pydev/pydevd_constants.py @@ -52,11 +52,14 @@ if IS_JYTHON: # Python 3? #======================================================================================================================= IS_PY3K = False +IS_PY34_OLDER = False IS_PY27 = False IS_PY24 = False try: if sys.version_info[0] >= 3: IS_PY3K = True + if sys.version_info[0] == 3 and sys.version_info[1] >= 4: + IS_PY34_OLDER = True elif sys.version_info[0] == 2 and sys.version_info[1] == 7: IS_PY27 = True elif sys.version_info[0] == 2 and sys.version_info[1] == 4: