I realize I only need to add the unittest2 thing to tox.ini and do the 
test in test.py. No need to put 2.6 users of argcomplete to install that.

I had not pushed my changes yet, will do after syncing which your merge 
and some more testing.

Regards
Anthon


On 2013-08-13 16:52, Andrey Kislyuk wrote:
>
> In test/test.py:
>
> > -    def test_non_ascii(self):
> > -        def make_parser():
> > -            parser = argparse.ArgumentParser()
> > -            parser.add_argument('--книга', choices=['Трудно быть богом', 'Парень из преисподней', 'Понедельник начинается в субботу'])
> > -            return parser
> > -
> > -        expected_outputs = (("prog ", ['--книга', '-h', '--help']),
> > -            ("prog --книга ", ['Трудно быть богом', 'Парень из преисподней', 'Понедельник начинается в субботу']),
> > -            ("prog --книга П", ['Парень из преисподней', 'Понедельник начинается в субботу']),
> > -            ("prog --книга Пу", ['']),
> > -            )
> > -
> > -        for cmd, output in expected_outputs:
> > -            output = [o.decode(locale.getpreferredencoding()) for o in output]
> > -            self.assertEqual(set(self.run_completer(make_parser(), cmd)), set(output))
> > +    if sys.version_info >= (2, 7):
>
> Ahh... I see, thanks. It's not a big deal. I don't like being 
> constrained by this, but I guess I can live with it.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/kislyuk/argcomplete/pull/42/files#r5737499>.
>