Fixed test on ci.
@@ -13,8 +13,12 @@ def test_run(testdir):
from os.path import os
foo_dir = debugger_unittest._get_debugger_test_file(os.path.join('resources', 'launch', 'foo'))
+ pydevd_dir = os.path.dirname(os.path.dirname(__file__))
+ assert os.path.exists(os.path.join(pydevd_dir, 'pydevd.py'))
_run_and_check(testdir, testdir.makepyfile('''
+import sys
+sys.path.append(%(pydevd_dir)r)
import pydevd
py_db = pydevd.PyDB()
py_db.ready_to_run = True
@@ -22,6 +26,8 @@ py_db.run(%(foo_dir)r)
''' % locals()))
_run_and_check(testdir, testdir.makepyfile('''
+import sys
+sys.path.append(%(pydevd_dir)r)
import pydevd
py_db = pydevd.PyDB()
py_db.run(%(foo_dir)r, set_trace=False)
