diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-05-04 12:02:00 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-05-04 12:02:00 +0100 |
commit | eab5731cdf11d4ae8cdf111461d46fd96c5bdd37 (patch) | |
tree | ce35c6d01b5ff5de95c3a20fef853b9a6518ad2e /dev-python/future/files | |
parent | b7ebc951da8800f711142f69d9d958bde67a112d (diff) |
gentoo resync : 04.05.2019
Diffstat (limited to 'dev-python/future/files')
3 files changed, 0 insertions, 150 deletions
diff --git a/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch b/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch deleted file mode 100644 index 8d8e5daccf10..000000000000 --- a/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch +++ /dev/null @@ -1,57 +0,0 @@ -* Fix test failures on py3.5, backported from git, see also - https://github.com/PythonCharmers/python-future/issues/183 -* Fix unexpected test successes on py3.5, which are now correct - ---- a/tests/test_future/test_bytes.py -+++ b/tests/test_future/test_bytes.py -@@ -10,6 +10,8 @@ - from numbers import Integral - from future.tests.base import unittest, expectedFailurePY2 - -+import sys -+ - - TEST_UNICODE_STR = u'ℝεα∂@ßʟ℮ ☂ℯṧт υηḯ¢☺ḓ℮' - # Tk icon as a .gif: -@@ -534,6 +536,8 @@ - self.assertRaises(ValueError, bytes.maketrans, b'abc', b'xyzq') - self.assertRaises(TypeError, bytes.maketrans, 'abc', 'def') - -+ @unittest.skipIf(sys.version_info[:2] == (3, 5), -+ 'Only works in Py3.5+') - @unittest.expectedFailure - def test_mod(self): - """ -@@ -551,6 +555,8 @@ - a = b % (b'seventy-nine', 79) - self.assertEqual(a, b'seventy-nine / 100 = 79%') - -+ @unittest.skipIf(sys.version_info[:2] == (3, 5), -+ 'Only works in Py3.5+') - @unittest.expectedFailure - def test_imod(self): - """ ---- a/tests/test_future/test_builtins.py -+++ b/tests/test_future/test_builtins.py -@@ -525,11 +525,10 @@ - self.assertRaises(ValueError, compile, 'print(42)\n', '<string>', 'badmode') - self.assertRaises(ValueError, compile, 'print(42)\n', '<string>', 'single', 0xff) - # Raises TypeError in Python < v3.5, ValueError in v3.5: -- # self.assertRaises(TypeError, compile, chr(0), 'f', 'exec') -+ self.assertRaises((TypeError, ValueError), compile, chr(0), 'f', 'exec') - self.assertRaises(TypeError, compile, 'pass', '?', 'exec', - mode='eval', source='0', filename='tmp') - compile('print("\xe5")\n', '', 'exec') -- self.assertRaises(TypeError, compile, chr(0), 'f', 'exec') - self.assertRaises(ValueError, compile, str('a = 1'), 'f', 'bad') - - # test the optimize argument -@@ -1287,7 +1286,7 @@ - self.assertAlmostEqual(pow(-1, 1/3), 0.5 + 0.8660254037844386j) - - # Raises TypeError in Python < v3.5, ValueError in v3.5: -- # self.assertRaises(TypeError, pow, -1, -2, 3) -+ self.assertRaises((TypeError, ValueError), pow, -1, -2, 3) - self.assertRaises(ValueError, pow, 1, 2, 0) - - self.assertRaises(TypeError, pow) diff --git a/dev-python/future/files/future-0.16.0-disable-tests-with-internet-connection.patch b/dev-python/future/files/future-0.16.0-disable-tests-with-internet-connection.patch deleted file mode 100644 index b4ba01ed796a..000000000000 --- a/dev-python/future/files/future-0.16.0-disable-tests-with-internet-connection.patch +++ /dev/null @@ -1,50 +0,0 @@ -##Skipping tests due to connection failures on Fedora build-system -##See https://github.com/PythonCharmers/python-future/issues/165 - ---- a/tests/test_future/test_standard_library.orig.py 2014-11-21 12:52:03.000000000 +0100 -+++ b/tests/test_future/test_standard_library.py 2015-09-02 11:37:36.808826777 +0200 -@@ -318,7 +318,7 @@ - import builtins - self.assertTrue(hasattr(builtins, 'tuple')) - -- # @unittest.skip("ssl support has been stripped out for now ...") -+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") - def test_urllib_request_ssl_redirect(self): - """ - This site redirects to https://... -@@ -332,6 +332,7 @@ - # pprint(r.read().decode('utf-8')) - self.assertTrue(True) - -+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") - def test_moves_urllib_request_http(self): - """ - This site (python-future.org) uses plain http (as of 2014-09-23). -@@ -343,6 +343,7 @@ - data = r.read() - self.assertTrue(b'</html>' in data) - -+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") - def test_urllib_request_http(self): - """ - This site (python-future.org) uses plain http (as of 2014-09-23). - ---- a/tests/test_future/test_requests.orig.py 2014-11-21 12:52:03.000000000 +0100 -+++ b/tests/test_future/test_requests.py 2015-09-02 11:39:01.509378296 +0200 -@@ -57,6 +57,7 @@ - This class tests whether the requests module conflicts with the - standard library import hooks, as in issue #19. - """ -+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") - def test_remove_hooks_then_requests(self): - code = """ - from future import standard_library -@@ -79,6 +80,7 @@ - self.assertTrue(True) - - -+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") - def test_requests_cm(self): - """ - Tests whether requests can be used importing standard_library modules - diff --git a/dev-python/future/files/future-0.16.0-fix-tests-py37.patch b/dev-python/future/files/future-0.16.0-fix-tests-py37.patch deleted file mode 100644 index d925d49f983e..000000000000 --- a/dev-python/future/files/future-0.16.0-fix-tests-py37.patch +++ /dev/null @@ -1,43 +0,0 @@ -commit ce4f015978d250718ec8dd9f50721da90a9bd18b -Author: Louis Sautier <sautier.louis@gmail.com> -Date: Mon Aug 20 12:42:29 2018 +0200 - - Skip int() keyword tests with Python 3.7 - - The first argument must be positional since - https://github.com/python/cpython/commit/2e5642422f6234fd8d0c082142b27340e588f96e - -diff --git a/tests/test_future/test_int.py b/tests/test_future/test_int.py -index f1d9c5d..e306550 100644 ---- a/tests/test_future/test_int.py -+++ b/tests/test_future/test_int.py -@@ -265,6 +265,9 @@ class IntTestCases(unittest.TestCase): - def test_no_args(self): - self.assertEqual(int(), 0) - -+ @unittest.skipIf(sys.version_info >= (3, 7), -+ "The first parameter must be positional with Python >= 3.7" -+ ) - def test_keyword_args(self): - # Test invoking int() using keyword arguments. - self.assertEqual(int(x=1.2), 1) - -commit d7a3451753982d944ae0894c9e9f01d0460d03d5 -Author: Louis Sautier <sautier.louis@gmail.com> -Date: Mon Aug 20 11:17:59 2018 +0200 - - Make test_bad_status_repr work for Python 3.7 - -diff --git a/tests/test_future/test_httplib.py b/tests/test_future/test_httplib.py -index 968e933..a1e2b19 100644 ---- a/tests/test_future/test_httplib.py -+++ b/tests/test_future/test_httplib.py -@@ -197,7 +197,7 @@ class BasicTest(TestCase): - if not utils.PY3: - self.assertEqual(repr(exc), '''BadStatusLine("u\'\'",)''') - else: -- self.assertEqual(repr(exc), '''BadStatusLine("\'\'",)''') -+ self.assertIn(repr(exc), ('''BadStatusLine("''",)''', '''BadStatusLine("''")''')) - - def test_partial_reads(self): - # if we have a length, the system knows when to close itself |