Changeset - 4516cd7f6cbb
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-05-13 17:11:51
branko@majic.rs
GC-33: Fixed Python 3.8 deprecation warning about use of collections.* instead of collections.abc.*.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
tests/test_decorators.py
Show inline comments
 
@@ -16,24 +16,24 @@
 
#
 
# You should have received a copy of the GNU General Public License along with
 
# Gimmecert.  If not, see <http://www.gnu.org/licenses/>.
 
#
 

	
 

	
 
import collections
 
import collections.abc
 

	
 
import gimmecert.decorators
 

	
 
import pytest
 

	
 

	
 
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():
 

	
 
    @gimmecert.decorators.subcommand_parser
 
    def myfunction1(parser, subparsers):
0 comments (0 inline, 0 general)