Skip to content

Commit

Permalink
Skip df tests on 3.11 or PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
parafoxia committed Nov 13, 2021
1 parent 9005a4e commit 8ddb70d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tests/test_dataframe_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8ddb70d

Please sign in to comment.