File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
test/openjd/adaptor_runtime/integ Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11coverage[toml] == 7.*
22coverage-conditional-plugin == 0.9.0
3- pytest == 7.4 .*
3+ pytest == 8.3 .*
44pytest-cov == 6.1.*
55pytest-timeout == 2.4.*
66pytest-xdist == 3.6.*
Original file line number Diff line number Diff line change 2929
3030mod_path = (Path (__file__ ).parent .parent ).resolve ()
3131sys .path .append (str (mod_path ))
32+
3233if (_pypath := os .environ .get ("PYTHONPATH" )) is not None :
3334 os .environ ["PYTHONPATH" ] = os .pathsep .join ((_pypath , str (mod_path )))
3435else :
3536 os .environ ["PYTHONPATH" ] = str (mod_path )
37+
38+ # Add the module path to PYTHONPATH for subprocesses
39+ os .environ ["PYTEST_XDIST_WORKER_PYTHONPATH" ] = str (mod_path )
40+
3641from AdaptorExample import AdaptorExample # noqa: E402
3742
3843
Original file line number Diff line number Diff line change 2020
2121mod_path = Path (__file__ ).parent .resolve ()
2222sys .path .append (str (mod_path ))
23+
2324if (_pypath := os .environ .get ("PYTHONPATH" )) is not None :
24- os .environ ["PYTHONPATH" ] = ":" . join (( _pypath , str (mod_path )) )
25+ os .environ ["PYTHONPATH" ] = os . pathsep . join ([ _pypath , str (mod_path )] )
2526else :
2627 os .environ ["PYTHONPATH" ] = str (mod_path )
28+
29+ # Add the module path to PYTHONPATH for subprocesses
30+ os .environ ["PYTEST_XDIST_WORKER_PYTHONPATH" ] = str (mod_path )
31+
2732from CommandAdaptorExample import CommandAdaptorExample # noqa: E402
2833
2934
You can’t perform that action at this time.
0 commit comments