Revert "Pyarrow Segfault Regression Test (#7568)" (#7805)

This reverts commit 57599f075c.
This commit is contained in:
Philipp Moritz
2020-03-29 20:59:05 -07:00
committed by GitHub
parent 57599f075c
commit eb61036ba2
2 changed files with 0 additions and 37 deletions
-8
View File
@@ -407,11 +407,3 @@ py_test(
tags = ["exclusive"],
deps = ["//:ray_lib"],
)
py_test(
name = "test_symbol_collisions",
size = "small",
srcs = ["test_symbol_collisions.py"],
tags = ["exclusive"],
deps = ["//:ray_lib"],
)
@@ -1,29 +0,0 @@
"""
This script ensures that various libraries do not conflict with ray by
trying to import both libraries in both orders.
A specific example is that importing ray after pyarrow causes a Segfault.
"""
import subprocess
TESTED_LIBRARIES = ["pyarrow"]
def test_imports():
def try_imports(library1, library2):
return_info = subprocess.run([
"python", "-c", "import {}; import {}".format(library1, library2)
])
if return_info.returncode != 0:
return "Importing {} before {} caused an error".format(
library1, library2)
return ""
for library in TESTED_LIBRARIES:
assert try_imports("ray", library) == ""
assert try_imports(library, "ray") == ""
if __name__ == "__main__":
import sys
import pytest
sys.exit(pytest.main(["-v", __file__]))