Skip to content

Commit

Permalink
Tests: Improve bin/test, mitigating py/procedure-return-value-used
Browse files Browse the repository at this point in the history
`zope.testrunner.run` already invokes `sys.exit`. No need to do it here.
  • Loading branch information
amotl committed Nov 22, 2022
1 parent 4397cc2 commit 4e3706e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ base = os.path.dirname(base)
sys.argv[0] = os.path.abspath(sys.argv[0])

if __name__ == '__main__':
sys.exit(zope.testrunner.run((['--auto-color', '--verbose']) + [
zope.testrunner.run((['--auto-color', '--verbose']) + [
'--test-path', join(base, 'src'),
]))
])

0 comments on commit 4e3706e

Please sign in to comment.