fix control+c during -j and range tests
This commit is contained in:
@@ -542,8 +542,6 @@ class DataJob(Job):
|
|||||||
pass
|
pass
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
self.data.append((exc.__class__.__name__, str(exc)))
|
self.data.append((exc.__class__.__name__, str(exc)))
|
||||||
except KeyboardInterrupt:
|
|
||||||
raise
|
|
||||||
except BaseException:
|
except BaseException:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ for idx, extr, url, result in tests:
|
|||||||
config.set(key.split("."), value)
|
config.set(key.split("."), value)
|
||||||
if "range" in result:
|
if "range" in result:
|
||||||
config.set(("image-range",), result["range"])
|
config.set(("image-range",), result["range"])
|
||||||
|
config.set(("chapter-range",), result["range"])
|
||||||
|
|
||||||
# write test data
|
# write test data
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ class TestExtractorResults(unittest.TestCase):
|
|||||||
config.set(key.split("."), value)
|
config.set(key.split("."), value)
|
||||||
if "range" in result:
|
if "range" in result:
|
||||||
config.set(("image-range",), result["range"])
|
config.set(("image-range",), result["range"])
|
||||||
|
config.set(("chapter-range",), result["range"])
|
||||||
content = "content" in result
|
content = "content" in result
|
||||||
else:
|
else:
|
||||||
content = False
|
content = False
|
||||||
|
|||||||
Reference in New Issue
Block a user