diff options
| author | Georg Brandl <georg@python.org> | 2010-07-28 20:24:35 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-07-28 20:24:35 +0200 |
| commit | c7ece3cb418f04e1a5aae46b33989969e737be2f (patch) | |
| tree | 0160c4a6cf181f93d3cd473e09954b8d593b963d /tests/test_quickstart.py | |
| parent | 6a3799564843e0002e6496f799f3efd56fb68e55 (diff) | |
| download | sphinx-c7ece3cb418f04e1a5aae46b33989969e737be2f.tar.gz | |
Fix raw_input which is not converted by 2to3 if not called.
Diffstat (limited to 'tests/test_quickstart.py')
| -rw-r--r-- | tests/test_quickstart.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py index 72ae764d..541959bd 100644 --- a/tests/test_quickstart.py +++ b/tests/test_quickstart.py @@ -36,8 +36,13 @@ def mock_raw_input(answers, needanswer=False): return '' return raw_input +try: + real_raw_input = raw_input +except NameError: + real_raw_input = input + def teardown_module(): - qs.term_input = raw_input + qs.term_input = real_raw_input qs.TERM_ENCODING = getattr(sys.stdin, 'encoding', None) coloron() |
