diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-07-08 19:09:50 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-07-09 09:03:50 +0200 |
commit | 96fca118960d3d5d6e40e00bcc85307a001f75e2 (patch) | |
tree | c3354d2f01820eb8edb19e073ba893e6671d9837 /debian/patches/0002-ensure-uniform-quoting-in-mypy-test-messages.patch | |
parent | e55faf7dd0c13af4c4eaf94ebe0f2ae18799898a (diff) | |
download | immutables-96fca118960d3d5d6e40e00bcc85307a001f75e2.tar.gz immutables-96fca118960d3d5d6e40e00bcc85307a001f75e2.zip |
update debian/patchesdebian-debian
Diffstat (limited to 'debian/patches/0002-ensure-uniform-quoting-in-mypy-test-messages.patch')
-rw-r--r-- | debian/patches/0002-ensure-uniform-quoting-in-mypy-test-messages.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/0002-ensure-uniform-quoting-in-mypy-test-messages.patch b/debian/patches/0002-ensure-uniform-quoting-in-mypy-test-messages.patch new file mode 100644 index 0000000..8bf5a5f --- /dev/null +++ b/debian/patches/0002-ensure-uniform-quoting-in-mypy-test-messages.patch @@ -0,0 +1,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 |