Skip to content

Commit

Permalink
[SPARK-24614][PYSPARK] Fix for SyntaxWarning on tests.py
Browse files Browse the repository at this point in the history
## 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 #21604 from rekhajoshm/SPARK-24614.
  • Loading branch information
rekhajoshm authored and HyukjinKwon committed Jun 21, 2018
1 parent 7236e75 commit c0cad59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ def assert_invalid_writer(self, writer, msg=None):
self.fail("invalid writer %s did not fail the query" % str(writer)) # not expected
except Exception as e:
if msg:
assert(msg in str(e), "%s not in %s" % (msg, str(e)))
assert msg in str(e), "%s not in %s" % (msg, str(e))

finally:
self.stop_all()
Expand Down

0 comments on commit c0cad59

Please sign in to comment.