Skip to content

Commit 14b16ca

Browse files
committed
Link to changelogs for ASYNC_ present checks
1 parent 540671b commit 14b16ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytest_twisted.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import inspect
22
import sys
33

4+
# https://docs.python.org/3/whatsnew/3.5.html#pep-492-coroutines-with-async-and-await-syntax
45
ASYNC_AWAIT = sys.version_info >= (3, 5)
6+
7+
# https://docs.python.org/3/whatsnew/3.6.html#pep-525-asynchronous-generators
58
ASYNC_GENERATORS = sys.version_info >= (3, 6)
69

710
if ASYNC_AWAIT:

0 commit comments

Comments
 (0)