716f95631a
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alfred Wingate <parona@protonmail.com>
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 58ee9cabdadf5e3deb13037f3052238f0f2bffcd Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
|
|
Date: Fri, 8 Jan 2021 19:07:21 +0100
|
|
Subject: [PATCH] Make TestConvert.test_no_file work with Python 3.10
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
argparse in Python 3.10 now prints "options:" instead of
|
|
"optional arguments:", see: https://bugs.python.org/issue9694
|
|
|
|
Signed-off-by: Nikola Forró <nforro@redhat.com>
|
|
---
|
|
tests/test_cli.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/test_cli.py b/tests/test_cli.py
|
|
index e53e209..3828870 100644
|
|
--- a/tests/test_cli.py
|
|
+++ b/tests/test_cli.py
|
|
@@ -58,7 +58,7 @@ class TestConvert(TestCase):
|
|
self.assertIn('underscore-emphasis', message)
|
|
self.assertIn('anonymous-references', message)
|
|
self.assertIn('inline-math', message)
|
|
- self.assertIn('optional arguments:', message)
|
|
+ self.assertRegex(message, r'option(s|al arguments):')
|
|
|
|
def test_parse_file(self):
|
|
output = parse_from_file(test_md)
|
|
--
|
|
2.31.1
|
|
|