mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +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):
|
def delete_tempfile(self, path):
|
||||||
try:
|
try:
|
||||||
ok = self.currentResult.wasSuccessful()
|
ok = self.currentResult.wasSuccessful()
|
||||||
except AttributeError: # for nosetests
|
except AttributeError: # for pytest
|
||||||
# proxy = self.currentResult
|
ok = True
|
||||||
# ok = (len(proxy.errors) + len(proxy.failures) == 0)
|
|
||||||
ok = True # TODO pytest
|
|
||||||
|
|
||||||
if ok:
|
if ok:
|
||||||
# only clean out tempfiles if test passed
|
# only clean out tempfiles if test passed
|
||||||
|
@ -211,10 +209,6 @@ class PillowTestCase(unittest.TestCase):
|
||||||
if skip:
|
if skip:
|
||||||
self.skipTest(msg or "Known Bad Test")
|
self.skipTest(msg or "Known Bad Test")
|
||||||
|
|
||||||
def shortDescription(self):
|
|
||||||
# Prevents `nose -v` printing docstrings
|
|
||||||
return None
|
|
||||||
|
|
||||||
def tempfile(self, template):
|
def tempfile(self, template):
|
||||||
assert template[:5] in ("temp.", "temp_")
|
assert template[:5] in ("temp.", "temp_")
|
||||||
fd, path = tempfile.mkstemp(template[4:], template[:4])
|
fd, path = tempfile.mkstemp(template[4:], template[:4])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user