Antonio Cuni  committed f947138

improve this test. It took me a second to understand what was going on, better to explain more explicitly :)

  • Participants
  • Parent commits 8bf783f
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/interpreter/pyparser/test/

                            parsestring.parsestr, space, None, s)
+        # only ASCII characters are allowed in bytes literals (but of course
+        # you can use escapes to get the non-ASCII ones (note that in the
+        # second case we use a raw string, the the parser actually sees the
+        # chars '\' 'x' 'e' '9'
                        parsestring.parsestr, space, None, "b'\xe9'")
+        self.parse_and_compare(r"b'\xe9'", chr(0xE9))
     def test_unicode(self):
         space =