summaryrefslogtreecommitdiff
path: root/numpy/tests/test_scripts.py
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-02-15 17:01:07 -0800
committerDongjoon Hyun <dongjoon@apache.org>2016-02-15 17:18:13 -0800
commitc854818b60d904e2dbaa48710490441a63d0f836 (patch)
tree25ff072b50e27b801f03b6e5dd3f265111d62cbb /numpy/tests/test_scripts.py
parent53c6ef74a7a3cce80f4db581eb708c5e374715b5 (diff)
downloadnumpy-c854818b60d904e2dbaa48710490441a63d0f836.tar.gz
MAINT: Use `is None` or `is not None` instead of `== None` or `!= None`.
Diffstat (limited to 'numpy/tests/test_scripts.py')
-rw-r--r--numpy/tests/test_scripts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/tests/test_scripts.py b/numpy/tests/test_scripts.py
index 1c108ddb1..bd7d06c95 100644
--- a/numpy/tests/test_scripts.py
+++ b/numpy/tests/test_scripts.py
@@ -49,7 +49,7 @@ def run_command(cmd, check_code=True):
cmd = ['"{0}"'.format(c) if ' ' in c else c for c in cmd]
proc = Popen(cmd, stdout=PIPE, stderr=PIPE)
stdout, stderr = proc.communicate()
- if proc.poll() == None:
+ if proc.poll() is None:
proc.terminate()
if check_code and proc.returncode != 0:
raise RuntimeError('\n'.join(