[pypy-commit] pypy py3k: (antocuni, romain): fix test_string by using a plain string literal instead of the no-longer valid u''
antocuni
noreply at buildbot.pypy.org
Thu Jan 19 12:55:33 CET 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r51482:d39b62c9983e
Date: 2012-01-19 12:22 +0100
http://bitbucket.org/pypy/pypy/changeset/d39b62c9983e/
Log: (antocuni, romain): fix test_string by using a plain string literal
instead of the no-longer valid u''
diff --git a/pypy/interpreter/astcompiler/test/test_astbuilder.py b/pypy/interpreter/astcompiler/test/test_astbuilder.py
--- a/pypy/interpreter/astcompiler/test/test_astbuilder.py
+++ b/pypy/interpreter/astcompiler/test/test_astbuilder.py
@@ -1055,7 +1055,7 @@
assert space.eq_w(s.s, space.wrapbytes("hi implicitly extra"))
raises(SyntaxError, self.get_first_expr, "b'hello' 'world'")
sentence = u"Die Männer ärgen sich!"
- source = u"# coding: utf-7\nstuff = u'%s'" % (sentence,)
+ source = u"# coding: utf-7\nstuff = '%s'" % (sentence,)
info = pyparse.CompileInfo("<test>", "exec")
tree = self.parser.parse_source(source.encode("utf-7"), info)
assert info.encoding == "utf-7"
More information about the pypy-commit
mailing list