From 0f80198892f0ab820b0ff87c7666528b579a7a85 Mon Sep 17 00:00:00 2001 From: Robert Sachunsky Date: Thu, 24 Feb 2022 13:36:12 +0100 Subject: [PATCH] test: workaround for core#809 --- test/test_recognize.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test_recognize.py b/test/test_recognize.py index 081f190..cb4f6b6 100644 --- a/test/test_recognize.py +++ b/test/test_recognize.py @@ -28,7 +28,12 @@ def workspace(): os.makedirs(WORKSPACE_DIR) resolver = Resolver() - workspace = resolver.workspace_from_url(METS_KANT, dst_dir=WORKSPACE_DIR) + # due to core#809 this does not always work: + #workspace = resolver.workspace_from_url(METS_KANT, dst_dir=WORKSPACE_DIR) + # workaround: + shutil.rmtree(WORKSPACE_DIR) + shutil.copytree(os.path.dirname(METS_KANT), WORKSPACE_DIR) + workspace = resolver.workspace_from_url(os.path.join(WORKSPACE_DIR, 'mets.xml')) # The binarization options I have are: #