##// END OF EJS Templates
Merge pull request #12581 from farisachugthai/typing_annotation
Matthias Bussonnier -
r26081:e2837c0a merge
parent child Browse files
Show More
@@ -1,5 +1,5 b''
1 """
1 """
2 Test for async helpers.
2 Test for async helpers.
3
3
4 Should only trigger on python 3.5+ or will have syntax errors.
4 Should only trigger on python 3.5+ or will have syntax errors.
5 """
5 """
@@ -9,6 +9,13 b' from textwrap import dedent, indent'
9 from unittest import TestCase
9 from unittest import TestCase
10 from IPython.testing.decorators import skip_without
10 from IPython.testing.decorators import skip_without
11 import sys
11 import sys
12 from typing import TYPE_CHECKING
13
14 if TYPE_CHECKING:
15 from IPython import get_ipython
16
17 ip = get_ipython()
18
12
19
13 iprc = lambda x: ip.run_cell(dedent(x)).raise_error()
20 iprc = lambda x: ip.run_cell(dedent(x)).raise_error()
14 iprc_nr = lambda x: ip.run_cell(dedent(x))
21 iprc_nr = lambda x: ip.run_cell(dedent(x))
@@ -275,7 +282,7 b' class AsyncTest(TestCase):'
275 await sleep(0.1)
282 await sleep(0.1)
276 """
283 """
277 )
284 )
278
285
279 if sys.version_info < (3,9):
286 if sys.version_info < (3,9):
280 # new pgen parser in 3.9 does not raise MemoryError on too many nested
287 # new pgen parser in 3.9 does not raise MemoryError on too many nested
281 # parens anymore
288 # parens anymore
General Comments 0
You need to be logged in to leave comments. Login now