Skip to content
Myr

fix py2 windows getchar test

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

authored by David Lord · committed by David Lord · parent c2efed8 · Browse files · 1 file+3 added−1 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+3 added−1 removed

  • tests:+3 added−1 removed

1 file+3 added−1 removed

modified:tests/test_termui.py+3 added-1 removed
237 unmodified lines
238 assert ' 75% 00:00:01' in lines[2]239 assert '100% ' in lines[3]240241242@pytest.mark.parametrize('key_char', ['h', 'H', 'é', 'À', ' ', '字', 'àH', 'àR'])242@pytest.mark.parametrize(243 'key_char', (u'h', u'H', u'é', u'À', u' ', u'字', u'àH', u'àR')244)245@pytest.mark.parametrize('echo', [True, False])246@pytest.mark.skipif(not WIN, reason='Tests user-input using the msvcrt module.')247def test_getchar_windows(runner, monkeypatch, key_char, echo):248 monkeypatch.setattr(click._termui_impl.msvcrt, 'getwche', lambda: key_char)
27 unmodified lines