From 6d7dd34dec52b28fb799dab5d9cb71d3411479b8 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sun, 17 Jun 2018 17:01:16 +0100 Subject: [PATCH] deb_dont_call_py2_in_py3_test Gbp-Pq: Name deb_dont_call_py2_in_py3_test.patch --- pandas/tests/plotting/test_converter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.30.2