mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
Merge pull request #4946 from nulano/mingw64-tk
Fix crash in ImageTk.PhotoImage on mingw64
This commit is contained in:
commit
e80f06147b
|
@ -2,7 +2,7 @@ import pytest
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from .helper import assert_image_equal, hopper, is_mingw
|
from .helper import assert_image_equal, hopper
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
|
@ -52,7 +52,6 @@ def test_kw():
|
||||||
assert im is None
|
assert im is None
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(is_mingw(), reason="Segmentation fault")
|
|
||||||
def test_photoimage():
|
def test_photoimage():
|
||||||
for mode in TK_MODES:
|
for mode in TK_MODES:
|
||||||
# test as image:
|
# test as image:
|
||||||
|
|
|
@ -63,7 +63,7 @@ ImagingFind(const char* name)
|
||||||
Py_ssize_t id;
|
Py_ssize_t id;
|
||||||
|
|
||||||
/* FIXME: use CObject instead? */
|
/* FIXME: use CObject instead? */
|
||||||
#if defined(_MSC_VER) && defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
id = _atoi64(name);
|
id = _atoi64(name);
|
||||||
#else
|
#else
|
||||||
id = atol(name);
|
id = atol(name);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user