Commits

Armin Rigo committed a8d569d

Fix for test_wide_unicode_in_source on wide-unicode hosts

  • Participants
  • Parent commits 78369eb

Comments (0)

Files changed (1)

pypy/interpreter/pyparser/test/test_parsestring.py

 import py, sys
 
 class TestParsetring:
-    def parse_and_compare(self, literal, value):
+    def parse_and_compare(self, literal, value, encoding=None):
         space = self.space
-        w_ret = parsestring.parsestr(space, None, literal)
+        w_ret = parsestring.parsestr(space, encoding, literal)
         if isinstance(value, str):
             assert space.type(w_ret) == space.w_str
             assert space.str_w(w_ret) == value