From 4516cd7f6cbb31f0f75169a1976915abb5b8a26c 2020-05-13 17:11:51 From: Branko Majic Date: 2020-05-13 17:11:51 Subject: [PATCH] GC-33: Fixed Python 3.8 deprecation warning about use of collections.* instead of collections.abc.*. --- diff --git a/tests/test_decorators.py b/tests/test_decorators.py index 2e7e315111415c74b87c617ea1dc32b1316ef708..1fabf1ae157557421f14b7e0a1f904bc70378f1f 100644 --- a/tests/test_decorators.py +++ b/tests/test_decorators.py @@ -19,7 +19,7 @@ # -import collections +import collections.abc import gimmecert.decorators @@ -30,7 +30,7 @@ def test_get_subcommand_parser_setup_functions_returns_list(): registered_functions = gimmecert.decorators.get_subcommand_parser_setup_functions() - assert isinstance(registered_functions, collections.Iterable) + assert isinstance(registered_functions, collections.abc.Iterable) def test_subcommand_parser_decorator_registers_function():