|
a/AlluraTesting/alluratest/test_syntax.py |
|
b/AlluraTesting/alluratest/test_syntax.py |
|
... |
|
... |
66 |
'Allura/ldap-userconfig.py',
|
66 |
'Allura/ldap-userconfig.py',
|
67 |
'Allura/ez_setup/',
|
67 |
'Allura/ez_setup/',
|
68 |
'Allura/allura/lib/AsciiDammit.py',
|
68 |
'Allura/allura/lib/AsciiDammit.py',
|
69 |
'/scripts/',
|
69 |
'/scripts/',
|
70 |
'Allura/allura/lib/import_api.py',
|
70 |
'Allura/allura/lib/import_api.py',
|
|
|
71 |
'ForgeSVN/setup.py',
|
71 |
]
|
72 |
]
|
72 |
if run(find_py + " | grep -v '" + "' | grep -v '".join(skips) + "' | xargs grep -v '^ *#' | grep 'print ' | grep -E -v '(pprint|#pragma: ?printok)' ") != 1:
|
73 |
if run(find_py + " | grep -v '" + "' | grep -v '".join(skips) + "' | xargs grep -v '^ *#' | grep 'print ' | grep -E -v '(pprint|#pragma: ?printok)' ") != 1:
|
73 |
raise Exception("These should use logging instead of print")
|
74 |
raise Exception("These should use logging instead of print")
|
74 |
|
75 |
|
75 |
def test_no_tabs():
|
76 |
def test_no_tabs():
|