From ed6d78069f3de03fb1e4f0438f10e9a403246885 Mon Sep 17 00:00:00 2001 From: Francisco Lopes Date: Thu, 22 Apr 2021 22:37:54 -0300 Subject: [PATCH] Skip PyPy tests due to heatshrink2's Cython usage See: - https://github.com/rytilahti/python-miio/pull/1021#issuecomment-825210217 - https://foss.heptapod.net/pypy/pypy/-/issues/3039 - https://github.com/cython/cython/issues/3448 --- miio/tests/test_chuangmi_ir.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/miio/tests/test_chuangmi_ir.py b/miio/tests/test_chuangmi_ir.py index 4838ffc9f..d6024e833 100644 --- a/miio/tests/test_chuangmi_ir.py +++ b/miio/tests/test_chuangmi_ir.py @@ -1,6 +1,7 @@ import base64 import json import os +import platform from unittest import TestCase import pytest @@ -10,6 +11,11 @@ from .dummies import DummyDevice +pytestmark = pytest.mark.skipif( + platform.python_implementation() == "PyPy", + reason="heatshrink2 does not support pypy", +) + with open(os.path.join(os.path.dirname(__file__), "test_chuangmi_ir.json")) as inp: test_data = json.load(inp)