diff --git a/Tests/helper.py b/Tests/helper.py index 66f8e9d9d..fdeb00c0c 100644 --- a/Tests/helper.py +++ b/Tests/helper.py @@ -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])