summaryrefslogtreecommitdiff
path: root/testing/test_helpconfig.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2019-06-07 12:58:51 +0200
committerRonny Pfannschmidt <opensource@ronnypfannschmidt.de>2019-06-15 06:48:00 +0200
commit2b92fee1c315469c3f257673a508e51a1f1a6230 (patch)
tree6341cac5eed636cac11d10f27592488968121129 /testing/test_helpconfig.py
parent240828d91245bd39d058f9d29ad5f2360e95368d (diff)
downloadpytest-2b92fee1c315469c3f257673a508e51a1f1a6230.tar.gz
initial conversion of exit codes to enum
Diffstat (limited to 'testing/test_helpconfig.py')
-rw-r--r--testing/test_helpconfig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/test_helpconfig.py b/testing/test_helpconfig.py
index ec061cad9..962750f7b 100644
--- a/testing/test_helpconfig.py
+++ b/testing/test_helpconfig.py
@@ -1,5 +1,5 @@
import pytest
-from _pytest.main import EXIT_NOTESTSCOLLECTED
+from _pytest.main import ExitCode
def test_version(testdir, pytestconfig):
@@ -49,7 +49,7 @@ def test_hookvalidation_optional(testdir):
"""
)
result = testdir.runpytest()
- assert result.ret == EXIT_NOTESTSCOLLECTED
+ assert result.ret == ExitCode.NO_TESTS_COLLECTED
def test_traceconfig(testdir):
@@ -59,7 +59,7 @@ def test_traceconfig(testdir):
def test_debug(testdir, monkeypatch):
result = testdir.runpytest_subprocess("--debug")
- assert result.ret == EXIT_NOTESTSCOLLECTED
+ assert result.ret == ExitCode.NO_TESTS_COLLECTED
p = testdir.tmpdir.join("pytestdebug.log")
assert "pytest_sessionstart" in p.read()
@@ -67,7 +67,7 @@ def test_debug(testdir, monkeypatch):
def test_PYTEST_DEBUG(testdir, monkeypatch):
monkeypatch.setenv("PYTEST_DEBUG", "1")
result = testdir.runpytest_subprocess()
- assert result.ret == EXIT_NOTESTSCOLLECTED
+ assert result.ret == ExitCode.NO_TESTS_COLLECTED
result.stderr.fnmatch_lines(
["*pytest_plugin_registered*", "*manager*PluginManager*"]
)