[py-svn] py-trunk commit 7aac1c673218: the check_sequence name is more specific
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Sep 28 22:54:17 CEST 2009
# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview/
# User Benjamin Peterson <benjamin at python.org>
# Date 1254171309 18000
# Node ID 7aac1c673218b968edbbc0d324d4a25696b5e166
# Parent b9b44ad50490d3f87546ab6124ed0dd7cf42d75f
the check_sequence name is more specific
--- a/testing/execnet/test_serializer.py
+++ b/testing/execnet/test_serializer.py
@@ -125,15 +125,14 @@ class TestSerializer:
assert tp == "bytes"
assert v == "b'hi'"
- def check(self, val, tp_name, rep, dump, load):
+ def check_sequence(self, val, tp_name, rep, dump, load):
p = dump(val)
tp , v = load(p)
assert tp == tp_name
assert v == rep
-
def test_list(self, dump, load):
- self.check([1, 2, 3], "list", "[1, 2, 3]", dump, load)
+ self.check_sequence([1, 2, 3], "list", "[1, 2, 3]", dump, load)
@py.test.mark.xfail
# I'm not sure if we need the complexity.
@@ -145,7 +144,7 @@ class TestSerializer:
assert tp == "list"
def test_tuple(self, dump, load):
- self.check((1, 2, 3), "tuple", "(1, 2, 3)", dump, load)
+ self.check_sequence((1, 2, 3), "tuple", "(1, 2, 3)", dump, load)
def test_dict(self, dump, load):
p = dump({6 : 2, (1, 2, 3) : 32})
More information about the pytest-commit
mailing list