From 084c36d538e4b299fcf3ace4958039c75b4f4469 Mon Sep 17 00:00:00 2001
From: Daniel Hahler <git@thequod.de>
Date: Sat, 17 Nov 2018 11:49:04 +0100
Subject: [PATCH] tox.ini: do not cause SyntaxWarning with py37  [ci skip]

Do not cause a SyntaxError for something like:

> DeprecationWarning: invalid escape sequence \w

This was happening via pdb++ when it imported pygments (and that had no
compiled .pyc file).
---
 tox.ini | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tox.ini b/tox.ini
index 8fe0124f3..337303a98 100644
--- a/tox.ini
+++ b/tox.ini
@@ -219,6 +219,8 @@ filterwarnings =
     ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning
     # pytest's own futurewarnings
     ignore::pytest.PytestExperimentalApiWarning
+    # Do not cause SyntaxError for invalid escape sequences in py37.
+    default:invalid escape sequence:DeprecationWarning
 pytester_example_dir = testing/example_scripts
 [flake8]
 max-line-length = 120