Skip to content

Commit 1f3764b

Browse files
committed
Fix XMLTestRunner
1 parent bbfea87 commit 1f3764b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/pyspark/streaming/tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,8 +1327,7 @@ def search_kinesis_asl_assembly_jar():
13271327
sys.stderr.write("[Running %s]\n" % (testcase))
13281328
tests = unittest.TestLoader().loadTestsFromTestCase(testcase)
13291329
if xmlrunner:
1330-
result = unittest.main(tests, verbosity=3,
1331-
testRunner=xmlrunner.XMLTestRunner(output='target/test-reports'))
1330+
result = xmlrunner.XMLTestRunner(output='target/test-reports', verbosity=3).run(tests)
13321331
if not result.wasSuccessful():
13331332
failed = True
13341333
else:

0 commit comments

Comments
 (0)