Skip to content

Commit

Permalink
Fix is not 'literal' (#212)
Browse files Browse the repository at this point in the history
This will be a new lint error in the latest pyflakes / flake8
  • Loading branch information
asottile authored and BeyondEvil committed Jan 21, 2019
1 parent 7cb3a23 commit 61d32ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_selenium/drivers/crossbrowsertesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def pytest_selenium_runtest_makereport(item, report, summary, extra):

try:
# Update the test result
if report.when == "setup" or info.get("test_score") is not "fail":
if report.when == "setup" or info.get("test_score") != "fail":
# Only update the result if it's not already marked as failed
score = "pass" if passed else "fail"
data = {"action": "set_score", "score": score}
Expand Down

0 comments on commit 61d32ca

Please sign in to comment.