summaryrefslogtreecommitdiff
path: root/tests/test_setup_command.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-01 11:15:05 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-15 04:34:10 +0000
commitc17300aa7a8aafb57eac91e1e3b15a4061ff2440 (patch)
tree336b4de3eed73f98bb069c723649f574d4a3da88 /tests/test_setup_command.py
parenta502e7523376e0344c1c9cc8a9d128143cd98b2d (diff)
downloadsphinx-git-c17300aa7a8aafb57eac91e1e3b15a4061ff2440.tar.gz
Treat Python warnings as errors during testing
Diffstat (limited to 'tests/test_setup_command.py')
-rw-r--r--tests/test_setup_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py
index ef364676c..510515125 100644
--- a/tests/test_setup_command.py
+++ b/tests/test_setup_command.py
@@ -33,7 +33,7 @@ def setup_command(request, tempdir, rootdir):
proc = subprocess.Popen(
command,
- env=dict(os.environ, PYTHONPATH=pythonpath),
+ env=dict(os.environ, PYTHONPATH=pythonpath, PYTHONWARNINGS='default'),
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
yield namedtuple('setup', 'pkgroot,proc')(pkgrootdir, proc)