reset DEBUG before importing run_tests

This commit is contained in:
Kovid Goyal 2022-07-04 20:39:59 +05:30
parent fbddb6bde2
commit 34bba138e0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -316,8 +316,8 @@ def main(args=sys.argv):
raise SystemExit(1)
plugin.cli_main([plugin.name] + args[1:])
elif opts.run_test:
from calibre.utils.run_tests import run_test
debug(False)
from calibre.utils.run_tests import run_test
run_test(opts.run_test)
elif opts.diff:
from calibre.gui2.tweak_book.diff.main import main