Skip to content

Commit 2d9b68c

Browse files
authored
acc: set PYTHONDONTWRITEBYTECODE=1 in all tests (#2796)
## Why Tests are run in fresh directory, so don't benefit from caching. No need to filter out `__pycache__` manually everywhere.
1 parent c3e60a0 commit 2d9b68c

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export PYTHONDONTWRITEBYTECODE=1
2-
31
uv venv -q .venv
42
venv_activate
53
uv pip install -q setuptools
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export PYTHONDONTWRITEBYTECODE=1
2-
31
uv venv -q .venv
42
venv_activate
53
uv pip install -q setuptools

acceptance/bundle/templates/default-python/integration_classic/script

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
export PYTHONDONTWRITEBYTECODE=1
2-
31
uv venv -q .venv
42
venv_activate
53
trace python -c 'import sys; print("%s.%s" % sys.version_info[:2])'

acceptance/test.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Default settings that apply to all tests unless overriden by test.toml files in inner directories.
22
Local = true
33
Cloud = false
4+
5+
Env.PYTHONDONTWRITEBYTECODE = "1"
6+
EnvRepl.PYTHONDONTWRITEBYTECODE = false

0 commit comments

Comments
 (0)