Skip to content

Commit c041b3f

Browse files
committed
Progress
1 parent ba30954 commit c041b3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cuda_core/tests/example_tests/test_basic_examples.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ def test_example_pep723(example):
114114
version_info = sys.version_info
115115
py_version = f"{version_info.major}.{version_info.minor}"
116116

117+
print("Parent process environment:", os.environ)
118+
117119
process = subprocess.run(["uv", "run", "--python", py_version, example_path], capture_output=True) # noqa: S603, S607
118120
if process.returncode != 0:
119121
# This example requires a development version of cuda_core, so requirements can't be met.
120122
# That's ok, it was tested in the other test, so we just skip it instead of failing.
121-
if re.search("Because only cuda-(core)|(bindings)", process.stderr.decode()):
122-
print("FOUND FAIL TAG")
123-
# if re.search("Because only cuda-(core)|(bindings)", process.stderr.decode()):
124-
# pytest.skip(f"Skipping {example} due to unmet PEP 723 requirement")
123+
if re.search("Because only cuda-((core)|(bindings))", process.stderr.decode()):
124+
pytest.skip(f"Skipping {example} due to unmet PEP 723 requirement")
125125

126126
if process.stdout:
127127
print(process.stdout.decode())

0 commit comments

Comments
 (0)