mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Prevent nose -v printing docstrings (#2369)
This commit is contained in:
parent
9099798ff2
commit
bceee54895
|
@ -149,6 +149,10 @@ 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