diff --git a/python/helpers/pydev/tests_pydevd_python/test_pydev_monkey.py b/python/helpers/pydev/tests_pydevd_python/test_pydev_monkey.py index 12e2efc1db00..45859987c938 100644 --- a/python/helpers/pydev/tests_pydevd_python/test_pydev_monkey.py +++ b/python/helpers/pydev/tests_pydevd_python/test_pydev_monkey.py @@ -24,7 +24,7 @@ class TestCase(unittest.TestCase): 'sys.path.append(r\'%s\'); ' 'import pydevd; pydevd.settrace(host=\'127.0.0.1\', port=0, suspend=False, ' 'trace_only_current_thread=False, patch_multiprocessing=True); ' - '' + 'from pydevd import SetupHolder; SetupHolder.setup = {\'client\': \'127.0.0.1\', \'port\': \'0\'}; ' 'connect("127.0.0.1")') % pydev_src_dir if sys.platform == "win32": debug_command = debug_command.replace('"', '\\"') @@ -47,7 +47,7 @@ class TestCase(unittest.TestCase): debug_command = ( 'import sys; sys.path.append(r\'%s\'); import pydevd; ' 'pydevd.settrace(host=\'127.0.0.1\', port=0, suspend=False, trace_only_current_thread=False, patch_multiprocessing=True); ' - '' + 'from pydevd import SetupHolder; SetupHolder.setup = {\'client\': \'127.0.0.1\', \'port\': \'0\'}; ' 'connect("127.0.0.1")') % pydev_src_dir if sys.platform == "win32": debug_command = debug_command.replace('"', '\\"')