summaryrefslogtreecommitdiff
path: root/tests/test_quickstart.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_quickstart.py')
-rw-r--r--tests/test_quickstart.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py
index 64c38457d..3140f641e 100644
--- a/tests/test_quickstart.py
+++ b/tests/test_quickstart.py
@@ -13,8 +13,7 @@ import sys
import time
import pytest
-from six import PY2, text_type, StringIO
-from six.moves import input
+from six import text_type, StringIO
from sphinx import application
from sphinx.cmd import quickstart as qs
@@ -37,12 +36,7 @@ def mock_input(answers, needanswer=False):
raise AssertionError('answer for %r missing and no default '
'present' % prompt)
called.add(prompt)
- if PY2:
- prompt = str(prompt) # Python2.x raw_input emulation
- # `raw_input` encode `prompt` by default encoding to print.
- else:
- prompt = text_type(prompt) # Python3.x input emulation
- # `input` decode prompt by default encoding before print.
+ prompt = text_type(prompt)
for question in answers:
if prompt.startswith(qs.PROMPT_PREFIX + question):
return answers[question]