Skip to content

Commit

Permalink
fix env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed May 15, 2023
1 parent 926ce43 commit 2b37f9b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pythonFiles/tests/pytestadapter/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@ def runner(args: List[str]) -> Optional[Dict[str, Any]]:
_, port = listener.getsockname()
listener.listen()

env = {
"TEST_UUID": str(uuid.uuid4()),
"TEST_PORT": str(port),
"PYTHONPATH": os.fspath(pathlib.Path(__file__).parent.parent.parent),
}
env = os.environ.copy()
env.update(
{
"TEST_UUID": str(uuid.uuid4()),
"TEST_PORT": str(port),
"PYTHONPATH": os.fspath(pathlib.Path(__file__).parent.parent.parent),
}
)

result: list = []
t1: threading.Thread = threading.Thread(
Expand Down

0 comments on commit 2b37f9b

Please sign in to comment.