Skip to content

Instantly share code, notes, and snippets.

@simonjayhawkins
Last active October 26, 2020 19:25
Show Gist options
  • Save simonjayhawkins/f26d3e26fd55159299b38204f7f3295c to your computer and use it in GitHub Desktop.
Save simonjayhawkins/f26d3e26fd55159299b38204f7f3295c to your computer and use it in GitHub Desktop.
Failing test_missing_required_dependency in pandas-wheels
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py
index c03e8e2695..7da9223a67 100644
--- a/pandas/tests/test_downstream.py
+++ b/pandas/tests/test_downstream.py
@@ -150,6 +150,12 @@ def test_missing_required_dependency():
# https://github.com/MacPython/pandas-wheels/pull/50
pyexe = sys.executable.replace("\\", "/")
+
+ call = [pyexe, "-c", "import pandas;print(pandas.__file__)"]
+ output = subprocess.check_output(call).decode()
+ if "site-packages" in output:
+ pytest.skip("pandas installed as site package")
+
call = [pyexe, "-sSE", "-c", "import pandas"]
msg = (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment