From 8ddb70d5f48552cbd1c06cc0bcb34bfb13df3a04 Mon Sep 17 00:00:00 2001 From: Ethan Henderson Date: Sat, 13 Nov 2021 16:51:42 +0000 Subject: [PATCH] Skip df tests on 3.11 or PyPy --- tests/test_dataframe_ops.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/test_dataframe_ops.py b/tests/test_dataframe_ops.py index 8ee5356..eab2677 100644 --- a/tests/test_dataframe_ops.py +++ b/tests/test_dataframe_ops.py @@ -27,6 +27,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import datetime as dt +import platform import sys import pytest @@ -42,8 +43,9 @@ def client(): @pytest.mark.skipif( - sys.version_info >= (3, 11, 0), - reason="pandas does not support Python 3.11", + sys.version_info >= (3, 11, 0) + or platform.python_implementation() != "CPython", + reason="pandas does not support Python 3.11 or PyPy", ) def test_day_is_datetime(client): import pandas as pd @@ -54,8 +56,9 @@ def test_day_is_datetime(client): @pytest.mark.skipif( - sys.version_info >= (3, 11, 0), - reason="pandas does not support Python 3.11", + sys.version_info >= (3, 11, 0) + or platform.python_implementation() != "CPython", + reason="pandas does not support Python 3.11 or PyPy", ) def test_month_is_datetime(client): import pandas as pd @@ -68,8 +71,9 @@ def test_month_is_datetime(client): @pytest.mark.skipif( - sys.version_info >= (3, 11, 0), - reason="pandas does not support Python 3.11", + sys.version_info >= (3, 11, 0) + or platform.python_implementation() != "CPython", + reason="pandas does not support Python 3.11 or PyPy", ) def test_metrics_are_numeric(client): import pandas as pd