]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind: fix tests that do not fail as expected
authorLoic Dachary <loic@dachary.org>
Wed, 29 Jan 2014 13:52:22 +0000 (14:52 +0100)
committerLoic Dachary <loic@dachary.org>
Tue, 4 Feb 2014 07:06:26 +0000 (08:06 +0100)
commitad09023e1bdb19412c0205b4567c460bf3a45eaa
treed9c1e4ba6a6f32dcf57062230eac323f6a048a3b
parentcb39b1367676215fc244664d83ffb3e245dbc5b0
pybind: fix tests that do not fail as expected

A missing argument make the test fail indeed, but the intended test is
to demonstrate something else ( either character validation or excess of
arguments etc. ). The result is {} instead of None which is what should
have been expected in the first place.

Ideally there would be a more verbose way to check for syntactic errors
to make such mistakes less probable.

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/pybind/test_ceph_argparse.py