aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-01-02 16:44:17 +0100
committerSimon Sapin <simon.sapin@exyr.org>2020-01-02 16:44:17 +0100
commit895cf695c440d7369255e92c9a0771b3bb0a0988 (patch)
tree3322b4fc333c44684de47c4002a141a414e2f6d2
parent56895198f418bbb366aac439eec1e6f999902f0f (diff)
downloadservo-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.py2
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',