Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/test_explicit_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def test_explicit_profile_ignores_inherited_owner_marker():
env = os.environ.copy()
env['LINE_PROFILE'] = '1'
env['LINE_PROFILER_OWNER_PID'] = str(os.getpid() + 100000)
env['PYTHONPATH'] = os.getcwd()
env['PYTHONPATH'] = os.pathsep.join(
[p for p in [os.getcwd(), env.get('PYTHONPATH')] if p]
)

with ub.ChDir(temp_dpath):
script_fpath = ub.Path('script.py')
Expand Down Expand Up @@ -182,7 +184,9 @@ def test_explicit_profile_process_pool_forkserver():
env = os.environ.copy()
env['LINE_PROFILE'] = '1'
# env['LINE_PROFILER_DEBUG'] = '1'
env['PYTHONPATH'] = os.getcwd()
env['PYTHONPATH'] = os.pathsep.join(
[p for p in [os.getcwd(), env.get('PYTHONPATH')] if p]
)

with ub.ChDir(temp_dpath):
script_fpath = ub.Path('script.py')
Expand Down
Loading