Skip to content
Myr

Fixed 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 0b4a0c8 · Browse files · 1 file+4 added−3 removed
This commit

State

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

Diff stats

1 file+4 added−3 removed

  • tests:+4 added−3 removed

1 file+4 added−3 removed

modified:tests/test_arguments.py+4 added-3 removed
1# -*- coding: utf-8 -*-2import click3from click._compat import PY2456def test_nargs_star(runner):7 @click.command()
227 unmodified lines
235 click.echo(arg)236237 result = runner.invoke(cmd, ['a', 'b', 'c'])238 assert result.output.splitlines() == [238 "(u'a',)",239 PY2 and "(u'a',)" or "('a')",240 'b',241 'c',242 ]243
8 unmodified lines
252 click.echo(arg)253254 result = runner.invoke(cmd, ['a', 'b', 'c', 'd', 'e', 'f'])255 assert result.output.splitlines() == [255 "(u'a', u'b', u'c')",256 PY2 and "(u'a', u'b', u'c')" or "('a', 'b', 'c')",257 'd',257 "(u'e', u'f')",258 PY2 and "(u'e', u'f')" or "('e', 'f')",259 ]