summaryrefslogtreecommitdiff
path: root/tests/test_z_cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_z_cmdline.py')
-rw-r--r--tests/test_z_cmdline.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/test_z_cmdline.py b/tests/test_z_cmdline.py
index b9783d53..93d2e366 100644
--- a/tests/test_z_cmdline.py
+++ b/tests/test_z_cmdline.py
@@ -42,11 +42,9 @@ def test_report_protocol(newconfig):
def test__resolve_pkg(tmpdir, mocksession):
distshare = tmpdir.join("distshare")
spec = distshare.join("pkg123-*")
- py.test.raises(tox.exception.MissingDirectory,
- 'mocksession._resolve_pkg(spec)')
+ pytest.raises(tox.exception.MissingDirectory, 'mocksession._resolve_pkg(spec)')
distshare.ensure(dir=1)
- py.test.raises(tox.exception.MissingDependency,
- 'mocksession._resolve_pkg(spec)')
+ pytest.raises(tox.exception.MissingDependency, 'mocksession._resolve_pkg(spec)')
distshare.ensure("pkg123-1.3.5.zip")
p = distshare.ensure("pkg123-1.4.5.zip")
@@ -490,7 +488,7 @@ class TestToxRun:
'tox.ini': '''
[testenv]
changedir=tests
- commands= py.test --basetemp={envtmpdir} \
+ commands= pytest --basetemp={envtmpdir} \
--junitxml=junit-{envname}.xml
deps=pytest
'''
@@ -590,7 +588,7 @@ def test_test_usedevelop(cmd, initproj, src_root):
usedevelop=True
changedir=tests
commands=
- py.test --basetemp={envtmpdir} --junitxml=junit-{envname}.xml []
+ pytest --basetemp={envtmpdir} --junitxml=junit-{envname}.xml []
deps=pytest
'''
})