diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-06-17 03:33:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 19:33:55 +0100 |
commit | 7e68154e49fbb260f7ffee9791bfafdb7fd2e119 (patch) | |
tree | 1631155dc5b00af31352945b166a283eebf9eeed /tests/test_errors.py | |
parent | 0d2a989517203de6d5080e8d8265ffd68fbbb28e (diff) | |
download | sphinx-git-7e68154e49fbb260f7ffee9791bfafdb7fd2e119.tar.gz |
Drop python 3.6 support (#10468)
Diffstat (limited to 'tests/test_errors.py')
-rw-r--r-- | tests/test_errors.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/test_errors.py b/tests/test_errors.py index c8cf4b05d..6378760af 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -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'))" |