[New-bugs-announce] [issue7822] 2to3 does not convert output lines in doctests

Éric Araujo report at bugs.python.org
Sun Jan 31 18:00:18 CET 2010


New submission from Éric Araujo <merwok at netwok.org>:

Howdy

I think there is a bug with 2to3’s doctest conversion:

$ echo ">>> u'éric'" > test
$ echo "u'éric'" >> test
$ 2to3 -d test -f unicode
--- test (original)
+++ test (refactored)
@@ -1,3 +1,3 @@
->>> u'éric'
+>>> 'éric'
 u'éric'
 
RefactoringTool: Files that need to be modified:
RefactoringTool: test


The output should be converted too.

Tested with 2.6.4+ (Debian’s), 2.7a2+ and 3.2a0.

Kind regards

----------
components: 2to3 (2.x to 3.0 conversion tool)
messages: 98620
nosy: Merwok
severity: normal
status: open
title: 2to3 does not convert output lines in doctests
versions: Python 2.6, Python 2.7, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7822>
_______________________________________


More information about the New-bugs-announce mailing list