aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/0002-ensure-uniform-quoting-in-mypy-test-messages.patch
blob: 8bf5a5f9bb87a74d0b4ccf355f896fcc55dca1e8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Wojtek Kosior <koszko@koszko.org>
Date: Sat, 9 Jul 2022 08:12:18 +0200
Subject: ensure uniform quoting in mypy test messages

---
 tests/test_mypy.py | 1 +
 1 file changed, 1 insertion(+)

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