projects
/
platform
/
upstream
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbb5d02
)
Fix lint in run_test.py
author
Edward Yang
<ezyang@fb.com>
Fri, 8 Mar 2019 22:30:15 +0000
(14:30 -0800)
committer
Facebook Github Bot
<facebook-github-bot@users.noreply.github.com>
Fri, 8 Mar 2019 22:41:36 +0000
(14:41 -0800)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17815
Reviewed By: eellison
Differential Revision:
D14390308
fbshipit-source-id:
22efd62a1bbd1fc8155a942d7160d5b7d3158e6b
test/run_test.py
patch
|
blob
|
history
diff --git
a/test/run_test.py
b/test/run_test.py
index
c82fa31
..
42a0d54
100644
(file)
--- a/
test/run_test.py
+++ b/
test/run_test.py
@@
-91,8
+91,8
@@
THD_DISTRIBUTED_TESTS_CONFIG = {
}
# https://stackoverflow.com/questions/2549939/get-signal-names-from-numbers-in-python
-SIGNALS_TO_NAMES_DICT =
dict((getattr(signal, n), n)
for n in dir(signal)
- if n.startswith('SIG') and '_' not in n)
+SIGNALS_TO_NAMES_DICT =
{getattr(signal, n): n
for n in dir(signal)
+ if n.startswith('SIG') and '_' not in n}
CPP_EXTENSIONS_ERROR = """
Ninja (https://ninja-build.org) must be available to run C++ extensions tests,