Skip to content
Snippets Groups Projects
Commit 3451c75720a0 authored by Hugo's avatar Hugo
Browse files

Remove nose-specific code

parent 5ce17e1230ed
No related branches found
No related tags found
No related merge requests found
......@@ -52,10 +52,8 @@
def delete_tempfile(self, path):
try:
ok = self.currentResult.wasSuccessful()
except AttributeError: # for nosetests
# proxy = self.currentResult
# ok = (len(proxy.errors) + len(proxy.failures) == 0)
ok = True # TODO pytest
except AttributeError: # for pytest
ok = True
if ok:
# only clean out tempfiles if test passed
......@@ -188,10 +186,6 @@
if skip:
self.skipTest(msg or "Known Bad Test")
def shortDescription(self):
# Prevents `nose -v` printing docstrings
return None
def tempfile(self, template):
assert template[:5] in ("temp.", "temp_")
fd, path = tempfile.mkstemp(template[4:], template[:4])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment