integrating review commets of @nicoddemus

plus small scale refactoring
This commit is contained in:
mbyt
2016-08-31 22:33:47 +02:00
parent be08223d5a
commit 696a9112be
4 changed files with 13 additions and 5 deletions

View File

@@ -86,7 +86,7 @@ class TestPDB:
def tearDown(self):
self.filename = None
def test_false(self):
self.filename = 'bla' + '.txt'
self.filename = 'debug' + '.me'
assert 0
""")
child = testdir.spawn_pytest("--pdb %s" % p1)
@@ -94,7 +94,7 @@ class TestPDB:
child.sendline('p self.filename')
child.sendeof()
rest = child.read().decode("utf8")
assert 'bla.txt' in rest
assert 'debug.me' in rest
if child.isalive():
child.wait()