mirror of
https://github.com/servo/servo.git
synced 2025-06-08 16:43:28 +00:00
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: ```
This commit is contained in:
parent
56895198f4
commit
895cf695c4
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue