summaryrefslogtreecommitdiff
path: root/tests/test_testing.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-03 15:21:15 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-03 15:29:00 -0500
commit4f3ccf213d813bb57775b2643b8bae5e08cbbbd0 (patch)
treefb113cb24362ee3fd67825867874ce3aa713b55e /tests/test_testing.py
parent98301ed240a141592573c2ed239e006d42a26161 (diff)
downloadpython-coveragepy-git-4f3ccf213d813bb57775b2643b8bae5e08cbbbd0.tar.gz
refactor: a better way to have maybe-importable third-party modules
Diffstat (limited to 'tests/test_testing.py')
-rw-r--r--tests/test_testing.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py
index 43c682cd..d5447c45 100644
--- a/tests/test_testing.py
+++ b/tests/test_testing.py
@@ -12,14 +12,13 @@ import warnings
import pytest
import coverage
-from coverage import tomlconfig
from coverage.exceptions import CoverageWarning
from coverage.files import actual_path
from tests.coveragetest import CoverageTest
from tests.helpers import (
arcs_to_arcz_repr, arcz_to_arcs, assert_count_equal, assert_coverage_warnings,
- CheckUniqueFilenames, re_lines, re_lines_text, re_line, without_module,
+ CheckUniqueFilenames, re_lines, re_lines_text, re_line,
)
@@ -356,16 +355,6 @@ def _same_python_executable(e1, e2):
return False # pragma: only failure
-def test_without_module():
- toml1 = tomlconfig.tomllib
- with without_module(tomlconfig, 'tomllib'):
- toml2 = tomlconfig.tomllib
- toml3 = tomlconfig.tomllib
-
- assert toml1 is toml3 is not None
- assert toml2 is None
-
-
class ArczTest(CoverageTest):
"""Tests of arcz/arcs helpers."""