Remove nose-specific code

This commit is contained in:
Hugo 2017-12-13 15:53:15 +02:00 committed by wiredfool
parent b55ea4014e
commit 7df920303c

View File

@ -63,10 +63,8 @@ class PillowTestCase(unittest.TestCase):
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
@ -211,10 +209,6 @@ class PillowTestCase(unittest.TestCase):
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])