Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit d68a2a0

Browse files
committed
Removed irrelevant test.
1 parent febdafa commit d68a2a0

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

src/tests/test_pep257.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -303,45 +303,3 @@ def test_illegal_convention():
303303
assert "Illegal convention 'illegal_conv'." in err
304304
assert 'Possible conventions: pep257' in err
305305

306-
307-
def test_unicode_literals():
308-
309-
if sys.version_info[0] >= 3:
310-
return # ur"" is a syntax error in python 3.x
311-
312-
# This is all to avoid a syntax error for python 3.2
313-
from codecs import unicode_escape_decode
314-
315-
def u(x):
316-
return unicode_escape_decode(x)[0]
317-
318-
with Pep257Env() as env:
319-
with env.open('example.py', 'wt') as example:
320-
example.write(textwrap.dedent(u('''\
321-
# -*- coding: utf-8 -*-
322-
"""This is a module."""
323-
324-
from __future__ import (nested_scopes as ns,
325-
unicode_literals)
326-
327-
def foo():
328-
"""Check unicode: \u2611."""
329-
''').encode('utf-8')))
330-
_, err, code = env.invoke_pep257()
331-
assert code == 0, err
332-
333-
with Pep257Env() as env:
334-
with env.open('example.py', 'wt') as example:
335-
example.write(textwrap.dedent(u('''\
336-
# -*- coding: utf-8 -*-
337-
"""This is a module."""
338-
339-
from __future__ import \
340-
nested_scopes, \
341-
unicode_literals as ul
342-
343-
def foo():
344-
"""Check unicode: \u2611."""
345-
''').encode('utf-8')))
346-
_, err, code = env.invoke_pep257()
347-
assert code == 0, err

0 commit comments

Comments
 (0)