python-parameterized/skip_Documentation_tests.patch

21 lines
682 B
Diff
Raw Normal View History

--- a/parameterized/test.py
+++ b/parameterized/test.py
@@ -2,7 +2,8 @@
import inspect
import mock
-from unittest import TestCase
+import sys
+from unittest import TestCase, skipIf
from nose.tools import assert_equal, assert_raises
from .parameterized import (
@@ -241,6 +242,7 @@ class TestParamerizedOnTestCase(TestCase
missing_tests.remove("%s(%r, bar=%r)" %(expected_name, foo, bar))
+@skipIf(sys.version_info[:2] >= (3, 8), "Doesn't work with Python 3.8")
class TestParameterizedExpandDocstring(TestCase):
def _assert_docstring(self, expected_docstring, rstrip=False):
""" Checks the current test method's docstring. Must be called directly