mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Remove nose-specific code
This commit is contained in:
parent
b55ea4014e
commit
7df920303c
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue
Block a user