mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
Merge pull request #6703 from nulano/embeddable-xfail
Add xfail mark to TestEmbeddable
This commit is contained in:
commit
a4ec9f331c
|
@ -4,11 +4,10 @@ import sys
|
||||||
import sysconfig
|
import sysconfig
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from setuptools.command.build_ext import new_compiler
|
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from .helper import assert_image_equal, hopper, is_win32, on_ci
|
from .helper import assert_image_equal, hopper, is_win32
|
||||||
|
|
||||||
# CFFI imports pycparser which doesn't support PYTHONOPTIMIZE=2
|
# CFFI imports pycparser which doesn't support PYTHONOPTIMIZE=2
|
||||||
# https://github.com/eliben/pycparser/pull/198#issuecomment-317001670
|
# https://github.com/eliben/pycparser/pull/198#issuecomment-317001670
|
||||||
|
@ -406,14 +405,13 @@ class TestImagePutPixelError(AccessTest):
|
||||||
|
|
||||||
|
|
||||||
class TestEmbeddable:
|
class TestEmbeddable:
|
||||||
@pytest.mark.skipif(
|
@pytest.mark.xfail(reason="failing test")
|
||||||
not is_win32() or on_ci(),
|
@pytest.mark.skipif(not is_win32(), reason="requires Windows")
|
||||||
reason="Failing on AppVeyor / GitHub Actions when run from subprocess, "
|
|
||||||
"not from shell",
|
|
||||||
)
|
|
||||||
def test_embeddable(self):
|
def test_embeddable(self):
|
||||||
import ctypes
|
import ctypes
|
||||||
|
|
||||||
|
from setuptools.command.build_ext import new_compiler
|
||||||
|
|
||||||
with open("embed_pil.c", "w", encoding="utf-8") as fh:
|
with open("embed_pil.c", "w", encoding="utf-8") as fh:
|
||||||
fh.write(
|
fh.write(
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user