[py-svn] py-trunk commit 40fab66c01bc: add separate test for the serializer bigint fail

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Sep 28 22:50:26 CEST 2009


# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview/
# User Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
# Date 1254170556 -7200
# Node ID 40fab66c01bc2bc379e24168a02be62f55e5c2d4
# Parent 4d6f55850786cb0752e26efa3e7bd538b5090fe9
add separate test for the serializer bigint fail

--- a/testing/execnet/test_serializer.py
+++ b/testing/execnet/test_serializer.py
@@ -90,6 +90,8 @@ class TestSerializer:
                 tp, v = load(p)
                 assert tp == "int"
                 assert int(v) == 4
+
+    def test_bigint_should_fail(self):
         py.test.raises(serializer.SerializationError,
                        serializer.Serializer(py.io.BytesIO()).save,
                        123456678900)



More information about the pytest-commit mailing list