openbsd-ports/textproc/py-pypandoc/patches/patch-tests_py
2023-01-03 14:51:17 +00:00

15 lines
514 B
Plaintext

Tests aren't allowed to make remote connection
Index: tests.py
--- tests.py.orig
+++ tests.py
@@ -228,7 +228,7 @@ class TestPypandoc(unittest.TestCase):
self.assertEqualExceptForNewlineEnd(expected, received)
def test_basic_conversion_from_http_url(self):
- url = 'https://raw.githubusercontent.com/bebraw/pypandoc/master/README.md'
+ url = 'file://'+ os.getcwd() + '/README.md'
received = pypandoc.convert_file(url, 'html')
assert "GPL2 license" in received