From 962903d4c3753ea90235bb43e944a5bd1a10213c Mon Sep 17 00:00:00 2001 From: Elizaveta Shashkova Date: Fri, 21 Apr 2017 18:54:45 +0300 Subject: [PATCH] Tests: use string presentation for the setup dict --- .../pydev/tests_pydevd_python/test_pydev_monkey.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 45859987c938..c4d4b0736daf 100644 --- a/python/helpers/pydev/tests_pydevd_python/test_pydev_monkey.py +++ b/python/helpers/pydev/tests_pydevd_python/test_pydev_monkey.py @@ -24,8 +24,8 @@ 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 + 'from pydevd import SetupHolder; SetupHolder.setup = %s; ' + 'connect("127.0.0.1")') % (pydev_src_dir, SetupHolder.setup) if sys.platform == "win32": debug_command = debug_command.replace('"', '\\"') debug_command = '"%s"' % debug_command @@ -47,8 +47,8 @@ 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 + 'from pydevd import SetupHolder; SetupHolder.setup = %s; ' + 'connect("127.0.0.1")') % (pydev_src_dir, SetupHolder.setup) if sys.platform == "win32": debug_command = debug_command.replace('"', '\\"') debug_command = '"%s"' % debug_command