Last active
October 26, 2020 19:25
-
-
Save simonjayhawkins/f26d3e26fd55159299b38204f7f3295c to your computer and use it in GitHub Desktop.
Failing test_missing_required_dependency in pandas-wheels
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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