diff options
author | Refael Ackermann <refack@gmail.com> | 2019-04-13 17:38:23 -0400 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-04-13 20:33:01 -0400 |
commit | a16a0fe9629325ae1dd81827c6071ca972d7449a (patch) | |
tree | 00bf22084787de666e5250152de02832eb045518 /tools/test.py | |
parent | 0befda69703e1599ab712d560984c27b251f1c62 (diff) | |
download | android-node-v8-a16a0fe9629325ae1dd81827c6071ca972d7449a.tar.gz android-node-v8-a16a0fe9629325ae1dd81827c6071ca972d7449a.tar.bz2 android-node-v8-a16a0fe9629325ae1dd81827c6071ca972d7449a.zip |
tools: python: activate more flake8 rules
PR-URL: https://github.com/nodejs/node/pull/25614
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'tools/test.py')
-rwxr-xr-x | tools/test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test.py b/tools/test.py index 549908cf38..d58ffd5648 100755 --- a/tools/test.py +++ b/tools/test.py @@ -355,7 +355,7 @@ class TapProgressIndicator(SimpleProgressIndicator): logger.info(' ---') logger.info(' duration_ms: %d.%d' % (total_seconds, duration.microseconds / 1000)) - if self.severity is not 'ok' or self.traceback is not '': + if self.severity != 'ok' or self.traceback != '': if output.HasTimedOut(): self.traceback = 'timeout\n' + output.output.stdout + output.output.stderr self._printDiagnostic() @@ -1641,7 +1641,7 @@ def Main(): continue archEngineContext = Execute([vm, "-p", "process.arch"], context) vmArch = archEngineContext.stdout.rstrip() - if archEngineContext.exit_code is not 0 or vmArch == "undefined": + if archEngineContext.exit_code != 0 or vmArch == "undefined": print("Can't determine the arch of: '%s'" % vm) print(archEngineContext.stderr.rstrip()) continue |