From: Debian Science Team Date: Sun, 17 Jun 2018 16:01:16 +0000 (+0100) Subject: deb_dont_call_py2_in_py3_test X-Git-Tag: archive/raspbian/0.25.3+dfsg2-2+rpi1~1^2^2^2^2^2^2^2^2^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6d7dd34dec52b28fb799dab5d9cb71d3411479b8;p=pandas.git deb_dont_call_py2_in_py3_test Gbp-Pq: Name deb_dont_call_py2_in_py3_test.patch --- diff --git a/pandas/tests/plotting/test_converter.py b/pandas/tests/plotting/test_converter.py index 3818c046..ec678fda 100644 --- a/pandas/tests/plotting/test_converter.py +++ b/pandas/tests/plotting/test_converter.py @@ -1,6 +1,7 @@ import subprocess import pytest from datetime import datetime, date +import sys import numpy as np from pandas import Timestamp, Period, Index, date_range, Series @@ -27,7 +28,7 @@ class TestRegistration(object): "import pandas as pd; " "units = dict(matplotlib.units.registry); " "assert pd.Timestamp in units)'") - call = ['python', '-c', code] + call = ['python' if sys.version_info[0] == 2 else 'python3', '-c', code] assert subprocess.check_call(call) == 0 def test_warns(self):