Skip to content

Commit ec3e75d

Browse files
committed
pandas header format change
1 parent b6f2214 commit ec3e75d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_multi.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from django.core.exceptions import ImproperlyConfigured
77
import os
88
from .settings import HAS_MATPLOTLIB
9+
import pandas
910

1011

1112
class MultiTestCase(APITestCase):
@@ -71,9 +72,12 @@ def test_multi_series_html(self):
7172

7273
def test_multi_scatter(self):
7374
response = self.client.get("/multiscatter.csv")
74-
self.assertEqual(
75-
""",test1-value,test2-value
76-
date,,
75+
if pandas.__version__ == "0.20.3":
76+
# FIXME: Remove when dropping Python 3.4 support
77+
header = "date,test1-value,test2-value"
78+
else:
79+
header = ",test1-value,test2-value\ndate,,"
80+
self.assertEqual(header + """
7781
2015-01-01,0.5,0.7
7882
2015-01-02,0.4,0.8
7983
2015-01-03,0.6,0.0

0 commit comments

Comments
 (0)