Skip to content

Commit c0cad59

Browse files
rekhajoshmHyukjinKwon
authored andcommitted
[SPARK-24614][PYSPARK] Fix for SyntaxWarning on tests.py
## What changes were proposed in this pull request? Fix for SyntaxWarning on tests.py ## How was this patch tested? ./dev/run-tests Author: Rekha Joshi <[email protected]> Closes apache#21604 from rekhajoshm/SPARK-24614.
1 parent 7236e75 commit c0cad59

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-
assert(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)