mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
27077f1149
* Translate all seds in postPatch into patches (for setting the static path and skipping the test that needs network access) * The patch for the changed pandoc heading generation was simplified: Since we know our pandoc version is always that new, we can skip the version check. * Skip the test for pandoc-citeproc: pandoc-citeproc has been deprecated in favor of pandoc --citeproc by the upstream pandoc developer. pypandoc's testsuite doesn't reflect this yet (although it should support --citeproc theoretically) to avoid depending on pandoc-citeproc for the checkPhase (as we expect it to break again or continue to be broken) we skip the test requiring pandoc-citeproc. The breakage of pypandoc due to pandoc-citeproc was pointed out here: https://github.com/NixOS/nixpkgs/pull/116635#issuecomment-809258707 Thank you!
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
diff --git a/tests.py b/tests.py
|
|
index aede281..c400888 100755
|
|
--- a/tests.py
|
|
+++ b/tests.py
|
|
@@ -295,7 +295,7 @@ class TestPypandoc(unittest.TestCase):
|
|
|
|
def test_unicode_input(self):
|
|
# make sure that pandoc always returns unicode and does not mishandle it
|
|
- expected = u'üäöîôû{0}======{0}{0}'.format(os.linesep)
|
|
+ expected = u'# üäöîôû'.format(os.linesep)
|
|
written = pypandoc.convert_text(u'<h1>üäöîôû</h1>', 'md', format='html')
|
|
self.assertTrue(isinstance(written, unicode_type))
|
|
self.assertEqualExceptForNewlineEnd(expected, written)
|
|
@@ -305,7 +305,7 @@ class TestPypandoc(unittest.TestCase):
|
|
self.assertTrue(isinstance(written, unicode_type))
|
|
|
|
# Only use german umlauts in th next test, as iso-8859-15 covers that
|
|
- expected = u'üäö€{0}===={0}{0}'.format(os.linesep)
|
|
+ expected = u'# üäö€'.format(os.linesep)
|
|
bytes = u'<h1>üäö€</h1>'.encode("iso-8859-15")
|
|
|
|
# Without encoding, this fails as we expect utf-8 per default
|