Skip to content

Commit 4a2af78

Browse files
committed
fix tests
1 parent f7ff4da commit 4a2af78

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/pyspark/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ def func():
324324
self.assertEqual("Hello World from inside a package!", UserClass().hello())
325325

326326
def test_overwrite_system_module(self):
327-
self.sc.addPyFile("python/test_support/SimpleHTTPServer.py")
327+
self.sc.addPyFile(os.path.join(SPARK_HOME, "python/test_support/SimpleHTTPServer.py"))
328+
328329
import SimpleHTTPServer
329330
self.assertEqual("My Server", SimpleHTTPServer.__name__)
330331

0 commit comments

Comments
 (0)