mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix for unicode object syntax. ur'' is meaningless.
This commit is contained in:
parent
83b061f7d5
commit
f2de6cdb6d
@ -111,11 +111,11 @@ def test_do_prompt():
|
|||||||
def test_do_prompt_with_multibyte():
|
def test_do_prompt_with_multibyte():
|
||||||
d = {}
|
d = {}
|
||||||
answers = {
|
answers = {
|
||||||
'Q1': ur'\u30c9\u30a4\u30c4',
|
'Q1': u'\u30c9\u30a4\u30c4',
|
||||||
}
|
}
|
||||||
qs.term_input = mock_raw_input(answers)
|
qs.term_input = mock_raw_input(answers)
|
||||||
qs.do_prompt(d, 'k1', 'Q1', default=ur'\u65e5\u672c')
|
qs.do_prompt(d, 'k1', 'Q1', default=u'\u65e5\u672c')
|
||||||
assert d['k1'] == ur'\u30c9\u30a4\u30c4'
|
assert d['k1'] == u'\u30c9\u30a4\u30c4'
|
||||||
|
|
||||||
|
|
||||||
@with_tempdir
|
@with_tempdir
|
||||||
@ -243,7 +243,7 @@ def test_generated_files_eol(tempdir):
|
|||||||
def test_quickstart_and_build(tmpdir):
|
def test_quickstart_and_build(tmpdir):
|
||||||
answers = {
|
answers = {
|
||||||
'Root path': tmpdir,
|
'Root path': tmpdir,
|
||||||
'Project name': ur'Fullwidth charactor: \u30c9\u30a4\u30c4',
|
'Project name': u'Fullwidth charactor: \u30c9\u30a4\u30c4',
|
||||||
'Author name': 'Georg Brandl',
|
'Author name': 'Georg Brandl',
|
||||||
'Project version': '0.1',
|
'Project version': '0.1',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user