Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r65157:ce22f20c0ada
Date: 2013-07-01 16:18 -0700
http://bitbucket.org/pypy/pypy/changeset/ce22f20c0ada/
Log: we don't actually utf8 encode here, so lighten the expectation to a
ValueError
diff --git a/pypy/objspace/std/test/test_floatobject.py
b/pypy/objspace/std/test/test_floatobject.py
--- a/pypy/objspace/std/test/test_floatobject.py
+++ b/pypy/objspace/std/test/test_floatobject.py
@@ -446,7 +446,7 @@
def test_from_string(self):
raises(ValueError, float, "\0")
- raises(UnicodeEncodeError, float, '\uD8F0')
+ raises(ValueError, float, '\uD8F0')
def test_format(self):
f = 1.1234e200
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit