Debian Codegraph @

debian/patches/0003-Disable-sandbox-for-docx-tests.patch

raw symbols SCIP
1 From: Bastian Germann <[email protected]>
2 Date: Tue, 13 Dec 2022 17:55:04 +0100
3 Subject: Disable sandbox for docx tests
4
5 Fixes: #278.
6 ---
7 tests.py | 4 +++-
8 1 file changed, 3 insertions(+), 1 deletion(-)
9
10 diff --git a/tests.py b/tests.py
11 index 04a2097..aebf6d5 100755
12 --- a/tests.py
13 +++ b/tests.py
14 @@ -489,6 +489,7 @@ class TestPypandoc(unittest.TestCase):
15 text,
16 to='docx',
17 format='md',
18 + sandbox=False,
19 outputfile=file_name) as output:
20 output = re.sub(r'\r', '', output)
21 output = output.replace("'missing.png'",
22 @@ -510,6 +511,7 @@ class TestPypandoc(unittest.TestCase):
23 text,
24 to='docx',
25 format='md',
26 + sandbox=False,
27 outputfile=file_name) as output:
28 self.assertFalse(output)
29
30 @@ -559,7 +561,7 @@ class TestPypandoc(unittest.TestCase):
31 expected = u'some title{0}=========={0}{0}'.format(os.linesep)
32 # let's just test conversion (to and) from docx, testing e.g. odt
33 # as well would really be testing pandoc rather than pypandoc
34 - received = pypandoc.convert_text('# some title\n', to='docx', format='md', outputfile=file_name)
35 + received = pypandoc.convert_text('# some title\n', to='docx', format='md', sandbox=False, outputfile=file_name)
36 self.assertEqualExceptForNewlineEnd("", received)
37 received = pypandoc.convert_file(file_name, to='rst')
38 self.assertEqualExceptForNewlineEnd(expected, received)