diff options
| author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2021-06-26 13:58:01 +0300 |
|---|---|---|
| committer | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2021-06-26 13:58:01 +0300 |
| commit | 254998e2e88835eaa634d9729dddcc3d4b5bc32f (patch) | |
| tree | cef488a6c8446165b729f513a881edc2329ffff5 /testtools/tests | |
| parent | 9c2faf0150f0667bc9b042652276576e08262823 (diff) | |
| download | testtools-254998e2e88835eaa634d9729dddcc3d4b5bc32f.tar.gz | |
Fix for Python 3.10
Diffstat (limited to 'testtools/tests')
| -rw-r--r-- | testtools/tests/test_testresult.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testtools/tests/test_testresult.py b/testtools/tests/test_testresult.py index 9f107b9..a9db0e2 100644 --- a/testtools/tests/test_testresult.py +++ b/testtools/tests/test_testresult.py @@ -2667,6 +2667,8 @@ class TestNonAsciiResults(TestCase): """Syntax errors should still have fancy special-case formatting""" if platform.python_implementation() == "PyPy": spaces = ' ' + elif sys.version_info >= (3, 10): + spaces = ' ' else: spaces = ' ' textoutput = self._test_external_case("exec ('f(a, b c)')") |
