We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b24ce2 commit 515fb09Copy full SHA for 515fb09
2 files changed
_pytest/compat.py
@@ -26,6 +26,9 @@
26
NoneType = type(None)
27
NOTSET = object()
28
29
+PY36 = sys.version_info[:2] >= (3, 6)
30
+MODULE_NOT_FOUND_ERROR = 'ModuleNotFoundError' if PY36 else 'ImportError'
31
+
32
if hasattr(inspect, 'signature'):
33
def _format_args(func):
34
return str(inspect.signature(func))
testing/test_doctest.py
@@ -1,12 +1,10 @@
1
# encoding: utf-8
2
import sys
3
import _pytest._code
4
+from _pytest.compat import MODULE_NOT_FOUND_ERROR
5
from _pytest.doctest import DoctestItem, DoctestModule, DoctestTextfile
6
import pytest
7
-PY36 = sys.version_info[:2] >= (3, 6)
8
-MODULE_NOT_FOUND_ERROR = 'ModuleNotFoundError' if PY36 else 'ImportError'
9
-
10
11
class TestDoctests:
12
0 commit comments