Skip to content
Permalink
Browse files

Fix a Python 3 warning

```
/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 895cf695c440d7369255e92c9a0771b3bb0a0988
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/servo/testing_commands.py
@@ -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',

0 comments on commit 895cf69

Please sign in to comment.
You can’t perform that action at this time.