mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 01:04:45 +03:00
Fix up test to get rid of warning
This commit is contained in:
parent
411ff3322c
commit
6199218d63
|
@ -54,7 +54,8 @@ class TestFileEps(PillowTestCase):
|
||||||
def test_invalid_file(self):
|
def test_invalid_file(self):
|
||||||
invalid_file = "Tests/images/flower.jpg"
|
invalid_file = "Tests/images/flower.jpg"
|
||||||
|
|
||||||
self.assertRaises(SyntaxError, EpsImagePlugin.EpsImageFile, invalid_file)
|
self.assertRaises(
|
||||||
|
SyntaxError, EpsImagePlugin.EpsImageFile, invalid_file)
|
||||||
|
|
||||||
@unittest.skipUnless(HAS_GHOSTSCRIPT, "Ghostscript not available")
|
@unittest.skipUnless(HAS_GHOSTSCRIPT, "Ghostscript not available")
|
||||||
def test_cmyk(self):
|
def test_cmyk(self):
|
||||||
|
@ -255,7 +256,7 @@ class TestFileEps(PillowTestCase):
|
||||||
self.assertEqual(image.format, "EPS")
|
self.assertEqual(image.format, "EPS")
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.timeout(timeout=5)
|
# @pytest.mark.timeout(timeout=5)
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"test_file",
|
"test_file",
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user