[pypy-commit] pypy py3.5: fix test_surrogate_in_filename
arigo
pypy.commits at gmail.com
Sun Feb 19 10:00:52 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r90199:fea26f231a97
Date: 2017-02-19 16:00 +0100
http://bitbucket.org/pypy/pypy/changeset/fea26f231a97/
Log: fix test_surrogate_in_filename
diff --git a/pypy/module/_warnings/interp_warnings.py b/pypy/module/_warnings/interp_warnings.py
--- a/pypy/module/_warnings/interp_warnings.py
+++ b/pypy/module/_warnings/interp_warnings.py
@@ -226,7 +226,7 @@
return False
def normalize_module(space, w_filename):
- filename = space.identifier_w(w_filename)
+ filename = space.text_w(w_filename)
if len(filename) == 0:
return space.newtext("<unknown>")
if filename.endswith(".py"):
More information about the pypy-commit
mailing list