From e7f241d5bbad1c64ecdd3e14663b25f6baa37799 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 8 Jul 2023 15:50:06 -0400 Subject: [PATCH] Re-enable doctests now that pytest-dev/pytest#3396 is solved. --- pytest.ini | 4 ++-- tests/test_configparser.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pytest.ini b/pytest.ini index 38541b2..98110ba 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,8 +1,8 @@ [pytest] norecursedirs=dist build .tox .eggs addopts= - # doctests disabled due to pytest-dev/pytest#3396 - # --doctest-modules + --doctest-modules + --import-mode importlib filterwarnings= ## upstream diff --git a/tests/test_configparser.py b/tests/test_configparser.py index 6270f43..07c62ca 100644 --- a/tests/test_configparser.py +++ b/tests/test_configparser.py @@ -8,7 +8,7 @@ from typing import Type, Iterable -from compat import support, os_helper +from .compat import support, os_helper from backports import configparser