aboutsummaryrefslogtreecommitdiff
path: root/tests/test_mypy.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-07-09 08:12:18 +0200
committerWojtek Kosior <koszko@koszko.org>2022-07-09 09:04:51 +0200
commit9f36efbf73bf43d2f3ab1be955ecb4ffb1725708 (patch)
treedbd959e4cbb376066a175e7b441a2744d0b1d384 /tests/test_mypy.py
parente54cf5cb06bed48e2b68b80c1f04c276cb3f042d (diff)
downloadimmutables-9f36efbf73bf43d2f3ab1be955ecb4ffb1725708.tar.gz
immutables-9f36efbf73bf43d2f3ab1be955ecb4ffb1725708.zip
ensure uniform quoting in mypy test messages
Gbp-Pq: Name 0002-ensure-uniform-quoting-in-mypy-test-messages.patch
Diffstat (limited to 'tests/test_mypy.py')
-rw-r--r--tests/test_mypy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_mypy.py b/tests/test_mypy.py
index fcdc11c..12f19b3 100644
--- a/tests/test_mypy.py
+++ b/tests/test_mypy.py
@@ -14,6 +14,7 @@ else:
# and at no other time.
def renormalize_error_messages(messages):
messages = [x for x in messages if not x.endswith(' defined here')]
+ messages = [x.replace('\'', '"') for x in messages]
return normalize_error_messages(messages)
mypy.test.testcmdline.normalize_error_messages = renormalize_error_messages