diff options
| author | David Lord <davidism@gmail.com> | 2020-10-26 16:49:13 -0700 |
|---|---|---|
| committer | David Lord <davidism@gmail.com> | 2020-10-26 16:49:13 -0700 |
| commit | 5cc1e1c60d3f7a4140069147cf191c6da8de9dce (patch) | |
| tree | f627a156822208bac95c111867bbe4edec319332 /tests/test_apps | |
| parent | 47bf15d663ccff521d48f4809bb6e4d690231798 (diff) | |
| download | werkzeug-test-dev-server.tar.gz | |
only use http.clienttest-dev-server
Diffstat (limited to 'tests/test_apps')
| -rw-r--r-- | tests/test_apps/reloader_app.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_apps/reloader_app.py b/tests/test_apps/reloader_app.py index 531b359f..da404dc5 100644 --- a/tests/test_apps/reloader_app.py +++ b/tests/test_apps/reloader_app.py @@ -1,3 +1,4 @@ +import os import sys from werkzeug import _reloader @@ -6,9 +7,10 @@ from werkzeug.wrappers import Response # Tox puts the tmp dir in the venv sys.prefix, patch the reloader so # it doesn't skip real_app. -prefixes = set(_reloader._ignore_prefixes) -prefixes -= {p for p in (sys.prefix, sys.exec_prefix) if "/.tox/" in p} -_reloader._ignore_prefixes = tuple(prefixes) +if "TOX_ENV_DIR" in os.environ: + _reloader._ignore_prefixes = tuple( + set(_reloader._ignore_prefixes) - {sys.prefix, sys.exec_prefix} + ) @Request.application |
