Skip to content

Fix tests fragile to PATH #21453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pandas/tests/plotting/test_converter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import subprocess
import sys
import pytest
from datetime import datetime, date

Expand Down Expand Up @@ -27,7 +28,7 @@ def test_register_by_default(self):
"import pandas as pd; "
"units = dict(matplotlib.units.registry); "
"assert pd.Timestamp in units)'")
call = ['python', '-c', code]
call = [sys.executable, '-c', code]
assert subprocess.check_call(call) == 0

def test_warns(self):
Expand Down
3 changes: 2 additions & 1 deletion pandas/tests/test_downstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Testing that we work in the downstream packages
"""
import subprocess
import sys

import pytest
import numpy as np # noqa
Expand Down Expand Up @@ -57,7 +58,7 @@ def test_xarray(df):

def test_oo_optimizable():
# GH 21071
subprocess.check_call(["python", "-OO", "-c", "import pandas"])
subprocess.check_call([sys.executable, "-OO", "-c", "import pandas"])


@tm.network
Expand Down