mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Merge pull request #1050 from cgohlke/patch-1
Do not quit Python if numpy is not installed
This commit is contained in:
commit
7e8644fbfa
|
@ -14,7 +14,7 @@ from PIL import Image
|
||||||
try:
|
try:
|
||||||
import numpy as np
|
import numpy as np
|
||||||
except:
|
except:
|
||||||
sys.exit("Skipping: Numpy not installed")
|
raise unittest.SkipTest("numpy not installed")
|
||||||
|
|
||||||
YDIM = 32769
|
YDIM = 32769
|
||||||
XDIM = 48000
|
XDIM = 48000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user