summaryrefslogtreecommitdiff
path: root/changelog
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2018-10-14 16:11:47 -0700
committerAnthony Sottile <asottile@umich.edu>2018-10-14 16:11:47 -0700
commit2e42d937dcbfc17398210e957e054e815c694ca2 (patch)
treec8987d728730fdf6040f18c2dbd4901bba2f6317 /changelog
parent6258248865451cd8fdec98a550c4a74f5557bbe9 (diff)
downloadpytest-2e42d937dcbfc17398210e957e054e815c694ca2.tar.gz
Display the filename when encountering `SyntaxWarning`.
```console $ cd t && rm -rf __pycache__ && pytest t.py -q -c /dev/null; cd .. . [100%] =============================== warnings summary =============================== <unknown>:2: DeprecationWarning: invalid escape sequence \. -- Docs: https://docs.pytest.org/en/latest/warnings.html 1 passed, 1 warnings in 0.01 seconds ``` ```console $ cd t && rm -rf __pycache__ && pytest t.py -q -c /dev/null; cd .. . [100%] =============================== warnings summary =============================== /tmp/pytest/t/t.py:2: DeprecationWarning: invalid escape sequence \. '\.wat' -- Docs: https://docs.pytest.org/en/latest/warnings.html 1 passed, 1 warnings in 0.01 seconds ```
Diffstat (limited to 'changelog')
-rw-r--r--changelog/4152.bugfix.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog/4152.bugfix.rst b/changelog/4152.bugfix.rst
new file mode 100644
index 000000000..ce2547294
--- /dev/null
+++ b/changelog/4152.bugfix.rst
@@ -0,0 +1 @@
+Display the filename when encountering ``SyntaxWarning``.