simplify test_pdb_collection_failure_is_shown test data setup code
This commit is contained in:
parent
f0bfe9de3d
commit
7feab7391d
|
@ -338,7 +338,7 @@ class TestPDB(object):
|
||||||
self.flush(child)
|
self.flush(child)
|
||||||
|
|
||||||
def test_pdb_collection_failure_is_shown(self, testdir):
|
def test_pdb_collection_failure_is_shown(self, testdir):
|
||||||
p1 = testdir.makepyfile("""xxx """)
|
p1 = testdir.makepyfile("xxx")
|
||||||
result = testdir.runpytest_subprocess("--pdb", p1)
|
result = testdir.runpytest_subprocess("--pdb", p1)
|
||||||
result.stdout.fnmatch_lines([
|
result.stdout.fnmatch_lines([
|
||||||
"*NameError*xxx*",
|
"*NameError*xxx*",
|
||||||
|
|
Loading…
Reference in New Issue