Author: Konstantin Lopuhin <[email protected]>
Branch: 
Changeset: r58425:f5b988d30d44
Date: 2012-07-20 21:58 +0400
http://bitbucket.org/pypy/pypy/changeset/f5b988d30d44/

Log:    simple test for float(bytearray) - issue #1219

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
@@ -439,6 +439,9 @@
     def test_int(self):
         assert int(bytearray('-1234')) == -1234
 
+    def test_float(self):
+        assert float(bytearray(b'10.4')) == 10.4
+
     def test_reduce(self):
         assert bytearray('caf\xe9').__reduce__() == (
             bytearray, (u'caf\xe9', 'latin-1'), None)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to