Skip to content

Commit c306287

Browse files
authored
Merge pull request #393 from nicoddemus/fix-master
Fix test_remote_usage_prog which started to break with pytest@features
2 parents 95aaaec + 2b65800 commit c306287

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

testing/test_remote.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import py
32
import pprint
43
import pytest
@@ -433,8 +432,6 @@ def test_mainargv(request):
433432
def test_remote_usage_prog(testdir, request):
434433
if not hasattr(request.config._parser, "prog"):
435434
pytest.skip("prog not available in config parser")
436-
prog = os.path.basename(sys.argv[0])
437-
438435
testdir.makeconftest(
439436
"""
440437
import pytest
@@ -462,5 +459,5 @@ def test(get_config_parser, request):
462459
result = testdir.runpytest_subprocess("-n1")
463460
assert result.ret == 1
464461
result.stdout.fnmatch_lines(
465-
["usage: %s *" % prog, "%s: error: my_usage_error" % prog]
462+
["usage: pytest.py *", "pytest.py: error: my_usage_error"]
466463
)

0 commit comments

Comments
 (0)