Skip to content

Commit 254998e

Browse files
committed
Fix for Python 3.10
1 parent 9c2faf0 commit 254998e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testtools/tests/test_testresult.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,6 +2667,8 @@ def test_syntax_error(self):
26672667
"""Syntax errors should still have fancy special-case formatting"""
26682668
if platform.python_implementation() == "PyPy":
26692669
spaces = ' '
2670+
elif sys.version_info >= (3, 10):
2671+
spaces = ' '
26702672
else:
26712673
spaces = ' '
26722674
textoutput = self._test_external_case("exec ('f(a, b c)')")

0 commit comments

Comments
 (0)