diff options
Diffstat (limited to 'dev-python/m2r/files/m2r-0.2.1-tests-network.patch')
-rw-r--r-- | dev-python/m2r/files/m2r-0.2.1-tests-network.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-python/m2r/files/m2r-0.2.1-tests-network.patch b/dev-python/m2r/files/m2r-0.2.1-tests-network.patch new file mode 100644 index 000000000000..74f3a0ca7a6a --- /dev/null +++ b/dev-python/m2r/files/m2r-0.2.1-tests-network.patch @@ -0,0 +1,28 @@ +diff --git a/tests/test_cli.py b/tests/test_cli.py +index e53e209..4dff652 100644 +--- a/tests/test_cli.py ++++ b/tests/test_cli.py +@@ -5,6 +5,7 @@ from __future__ import print_function, unicode_literals + + import sys + import os ++import unittest + from os import path + from copy import copy + from unittest import TestCase +@@ -127,6 +128,7 @@ class TestConvert(TestCase): + self.assertIn('__content__', m.call_args[0][0]) + self.assertNotIn('**content**', m.call_args[0][0]) + ++ @unittest.skip("needs internet access") + def test_anonymous_reference_option(self): + sys.argv = [ + sys.argv[0], '--anonymous-references', '--dry-run', test_md] +@@ -135,6 +137,7 @@ class TestConvert(TestCase): + self.assertIn("`A link to GitHub <http://github.com/>`__", + m.call_args[0][0]) + ++ @unittest.skip("test seems to be broken") + def test_disable_inline_math(self): + sys.argv = [ + sys.argv[0], '--disable-inline-math', '--dry-run', test_md] |