Commit 20e6808b authored by Stefan Behnel's avatar Stefan Behnel

fix test

parent 166d2a51
......@@ -1205,6 +1205,7 @@ class GrammarTests(unittest.TestCase):
GrammarTests.assertRaisesRegex = lambda self, exc, msg: self.assertRaises(exc)
if not hasattr(unittest.TestCase, 'subTest'):
import contextlib
@contextlib.contextmanager
def subTest(self, code, **kwargs):
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment