diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2020-01-02 16:44:17 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2020-01-02 16:44:17 +0100 |
commit | 895cf695c440d7369255e92c9a0771b3bb0a0988 (patch) | |
tree | 3322b4fc333c44684de47c4002a141a414e2f6d2 | |
parent | 56895198f418bbb366aac439eec1e6f999902f0f (diff) | |
download | servo-895cf695c440d7369255e92c9a0771b3bb0a0988.tar.gz servo-895cf695c440d7369255e92c9a0771b3bb0a0988.zip |
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:
```
-rw-r--r-- | python/servo/testing_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index c874d5ed26e..dad2af0aa04 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -298,7 +298,7 @@ class MachCommands(CommandBase): 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', |