add separate test for the serializer bigint fail

--HG--
branch : trunk
This commit is contained in:
Ronny Pfannschmidt 2009-09-28 22:42:36 +02:00
parent 3d2975f38e
commit 40e91dcd85
1 changed files with 2 additions and 0 deletions

View File

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