From 34bba138e0222af96b0678862352b5fb665fea73 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 4 Jul 2022 20:39:59 +0530 Subject: [PATCH] reset DEBUG before importing run_tests --- src/calibre/debug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/debug.py b/src/calibre/debug.py index 8879f5d50d..12cfec619c 100644 --- a/src/calibre/debug.py +++ b/src/calibre/debug.py @@ -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