Skip to content

Commit

Permalink
Fix a Python 3 warning
Browse files Browse the repository at this point in the history
```
/home/simon/projects/servo/python/servo/testing_commands.py:301:
SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if err is not 0:
```
  • Loading branch information
SimonSapin committed Jan 2, 2020
1 parent 5689519 commit 895cf69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/servo/testing_commands.py
Expand Up @@ -298,7 +298,7 @@ def test_unit(self, test_name=None, package=None, bench=False, nocapture=False,
args += ["--", "--nocapture"]

err = self.run_cargo_build_like_command("bench" if bench else "test", args, env=env, **kwargs)
if err is not 0:
if err:
return err

@Command('test-content',
Expand Down

0 comments on commit 895cf69

Please sign in to comment.