Skip to content

Commit f2e9181

Browse files
authored
Merge pull request #114 from lsst/tickets/DM-36947
DM-36947: Forward PYTHONWARNINGS to tests.
2 parents af9369d + 6b1969f commit f2e9181

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/lsst/sconsUtils/tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ def __init__(self, env, ignoreList=None, expectedFailures=None, args=None,
9898
if envvar in os.environ:
9999
env.AppendENVPath(envvar, os.environ[envvar])
100100

101+
# We can't use the AppendENVPath call above as that mangles anything
102+
# with ':' separators.
103+
if "PYTHONWARNINGS" in os.environ:
104+
env["ENV"]["PYTHONWARNINGS"] = os.environ["PYTHONWARNINGS"]
105+
101106
self._env = env
102107

103108
self._tmpDir = tmpDir

0 commit comments

Comments
 (0)