Author: Konstantin Lopuhin <[email protected]>
Branch: 
Changeset: r58427:19376e234a52
Date: 2012-07-20 22:20 +0400
http://bitbucket.org/pypy/pypy/changeset/19376e234a52/

Log:    some more tests, fix feels ok after looking around more

diff --git a/pypy/objspace/std/test/test_bytearrayobject.py 
b/pypy/objspace/std/test/test_bytearrayobject.py
--- a/pypy/objspace/std/test/test_bytearrayobject.py
+++ b/pypy/objspace/std/test/test_bytearrayobject.py
@@ -441,6 +441,8 @@
 
     def test_float(self):
         assert float(bytearray(b'10.4')) == 10.4
+        assert float(bytearray('-1.7e-1')) == -1.7e-1
+        assert float(bytearray(u'.9e10', 'utf-8')) == .9e10
 
     def test_reduce(self):
         assert bytearray('caf\xe9').__reduce__() == (
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to