Skip to content

Commit 9062fb9

Browse files
committed
Fixed test
1 parent 6f9fdf4 commit 9062fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/sql/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ def assert_invalid_writer(self, writer, msg=None):
19181918
self.fail("invalid writer %s did not fail the query" % str(writer)) # not expected
19191919
except Exception as e:
19201920
if msg:
1921-
self.assertTrue(msg in str(e), "%s not in %s" % (msg, str(e)))
1921+
assert(msg in str(e), "%s not in %s" % (msg, str(e)))
19221922

19231923
finally:
19241924
self.stop_all()

0 commit comments

Comments
 (0)