Skip to content
Myr

Fixed up tests for Python 3

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent f7c124e · Browse files · 2 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−5 removed

  • tests:+5 added−5 removed

2 files+5 added−5 removed

modified:tests/test_arguments.py+4 added-4 removed
34 unmodified lines
353637def test_nargs_tup_composite(runner):38 variations = [39 dict(type=(unicode, int)),40 dict(type=click.Tuple([unicode, int])),41 dict(nargs=2, type=click.Tuple([unicode, int])),42 dict(nargs=2, type=(unicode, int)),39 dict(type=(str, int)),40 dict(type=click.Tuple([str, int])),41 dict(nargs=2, type=click.Tuple([str, int])),42 dict(nargs=2, type=(str, int)),43 ]4445 for opts in variations:46 @click.command()
166 unmodified lines
modified:tests/test_options.py+1 added-1 removed
46 unmodified lines
474849def test_nargs_tup_composite_mult(runner):50 @click.command()51 @click.option('--item', type=(unicode, int), multiple=True)51 @click.option('--item', type=(str, int), multiple=True)52 def copy(item):53 for item in item:54 click.echo('name=%s id=%d' % item)55
238 unmodified lines