diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-26 00:09:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-26 00:09:36 +0100 |
commit | b1c81de4fadbd00897700a7321f03b390d952b2e (patch) | |
tree | e6cc812351d4f105c110cfc363ebb497e996f47a /dev-python/flask-login/files/flask-login-0.5.0-fix-tests-py3.10.patch | |
parent | 7c59acba5699c9c58090a7a738669669a7307023 (diff) |
gentoo resync : 26.08.2021
Diffstat (limited to 'dev-python/flask-login/files/flask-login-0.5.0-fix-tests-py3.10.patch')
-rw-r--r-- | dev-python/flask-login/files/flask-login-0.5.0-fix-tests-py3.10.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-python/flask-login/files/flask-login-0.5.0-fix-tests-py3.10.patch b/dev-python/flask-login/files/flask-login-0.5.0-fix-tests-py3.10.patch new file mode 100644 index 000000000000..858783b36e77 --- /dev/null +++ b/dev-python/flask-login/files/flask-login-0.5.0-fix-tests-py3.10.patch @@ -0,0 +1,26 @@ +From: Karthikeyan Singaravelan <tir.karthi@gmail.com> +Date: Sun, 10 Jan 2021 21:12:36 +0530 +Subject: [PATCH] Import ABC from collections.abc (#525) + +--- a/test_login.py ++++ b/test_login.py +@@ -12,6 +12,10 @@ + from mock import ANY, patch, Mock + except ImportError: + from unittest.mock import ANY, patch, Mock ++try: ++ from collections.abc import Hashable ++except ImportError: ++ from collections import Hashable + from semantic_version import Version + + +@@ -1548,7 +1552,7 @@ def test_equality(self): + self.assertTrue(first != u'1') + + def test_hashable(self): +- self.assertTrue(isinstance(UserMixin(), collections.Hashable)) ++ self.assertTrue(isinstance(UserMixin(), Hashable)) + + + class AnonymousUserTestCase(unittest.TestCase): |