forked from pool/python-parameterized
- Update to 0.7.1:
- 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
This commit is contained in:
20
skip_Documentation_tests.patch
Normal file
20
skip_Documentation_tests.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
--- 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
|
||||
Reference in New Issue
Block a user