Drop python 3.6 support (#10468)

This commit is contained in:
Takeshi KOMIYA
2022-06-17 03:33:55 +09:00
committed by GitHub
parent 0d2a989517
commit 7e68154e49
24 changed files with 201 additions and 414 deletions

View File

@@ -1,5 +1,3 @@
import sys
from sphinx.errors import ExtensionError
@@ -10,8 +8,4 @@ def test_extension_error_repr():
def test_extension_error_with_orig_exc_repr():
exc = ExtensionError("foo", Exception("bar"))
if sys.version_info < (3, 7):
expected = "ExtensionError('foo', Exception('bar',))"
else:
expected = "ExtensionError('foo', Exception('bar'))"
assert repr(exc) == expected
assert repr(exc) == "ExtensionError('foo', Exception('bar'))"