Skip to content

Commit 4dd84bf

Browse files
author
aviau
committed
Dont test pandas in pypy
1 parent b8206ed commit 4dd84bf

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
nose
22
mock
33
requests-mock
4-
pandas

tests/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
# -*- coding: utf-8 -*-
2+
import unittest
3+
import sys
4+
5+
using_pypy = hasattr(sys, "pypy_version_info")
6+
skipIfPYpy = unittest.skipIf(using_pypy, "Skipping this test on pypy.")

tests/influxdb/misc_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
from nose.tools import raises
99
from datetime import datetime, timedelta
1010
import time
11-
import pandas as pd
12-
from pandas.util.testing import assert_frame_equal
11+
from tests import skipIfPYpy, using_pypy
12+
13+
if not using_pypy:
14+
import pandas as pd
15+
from pandas.util.testing import assert_frame_equal
1316

1417
from influxdb.misc import DataFrameClient
1518
from .client_test import _mocked_session
1619

1720

21+
@skipIfPYpy
1822
class TestDataFrameClient(unittest.TestCase):
1923

2024
def test_write_points_from_dataframe(self):

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[tox]
2-
envlist = py33, py27, flake8
2+
envlist = py34, py27, pypy, flake8
33

44
[testenv]
55
deps = -r{toxinidir}/requirements.txt
66
-r{toxinidir}/test-requirements.txt
7-
commands = nosetests
7+
py27,py32,py33,py34: pandas
8+
# Only install pandas with non-pypy interpreters
9+
commands = nosetests -v
810

911
[testenv:flake8]
1012
deps =

0 commit comments

Comments
 (0)