Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 01cb679

Browse files
fix failing test_cancel in 3.12 (#1322)
* use dynamic schema in test_grant_access_to.py * use dynamic schema in test_grant_access_to.py * revert setup * Specify env in test_cancel subprocess call * remove chdir from test_cancel.py * pip install dev-requirements.txt in github actions worker * experimental updates to debug in github actions * experimental updates to debug in github actions * specify dbt exec path * experiment * remove editable install * remove tmate * remove maxfail * remove unnecessary install
1 parent 21aeca3 commit 01cb679

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/functional/test_cancel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _get_info_schema_jobs_query(project_id, dataset_id, table_id):
6363

6464

6565
def _run_dbt_in_subprocess(project, dbt_command):
66-
os.chdir(project.project_root)
66+
6767
run_dbt_process = subprocess.Popen(
6868
[
6969
"dbt",
@@ -76,6 +76,7 @@ def _run_dbt_in_subprocess(project, dbt_command):
7676
stdout=subprocess.PIPE,
7777
stderr=subprocess.PIPE,
7878
shell=False,
79+
env=os.environ.copy(),
7980
)
8081
std_out_log = ""
8182
while True:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ commands =
3131
bigquery: {envpython} -m pytest -n auto {posargs} -vv tests/functional -k "not TestPython" --profile service_account
3232
deps =
3333
-rdev-requirements.txt
34-
-e.
34+
.
3535

3636
[testenv:{python-tests,py38,py39,py310,py311,py312,py}]
3737
description = python integration testing

0 commit comments

Comments
 (0)