mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Remove unused arguments from PillowTestCase.skipKnwonBadTest()
This commit is contained in:
parent
6595ce1609
commit
0affbacd5e
|
@ -202,24 +202,13 @@ class PillowTestCase(unittest.TestCase):
|
|||
|
||||
self.assertTrue(value, msg + ": " + repr(actuals) + " != " + repr(targets))
|
||||
|
||||
def skipKnownBadTest(self, msg=None, platform=None, travis=None, interpreter=None):
|
||||
# Skip if platform/travis matches, and
|
||||
# PILLOW_RUN_KNOWN_BAD is not true in the environment.
|
||||
def skipKnownBadTest(self, msg=None):
|
||||
# Skip if PILLOW_RUN_KNOWN_BAD is not true in the environment.
|
||||
if os.environ.get("PILLOW_RUN_KNOWN_BAD", False):
|
||||
print(os.environ.get("PILLOW_RUN_KNOWN_BAD", False))
|
||||
return
|
||||
|
||||
skip = True
|
||||
if platform is not None:
|
||||
skip = sys.platform.startswith(platform)
|
||||
if travis is not None:
|
||||
skip = skip and (travis == bool(os.environ.get("TRAVIS", False)))
|
||||
if interpreter is not None:
|
||||
skip = skip and (
|
||||
interpreter == "pypy" and hasattr(sys, "pypy_version_info")
|
||||
)
|
||||
if skip:
|
||||
self.skipTest(msg or "Known Bad Test")
|
||||
self.skipTest(msg or "Known Bad Test")
|
||||
|
||||
def tempfile(self, template):
|
||||
assert template[:5] in ("temp.", "temp_")
|
||||
|
|
Loading…
Reference in New Issue
Block a user