Fix bug in exception handling for which(). Also standardize exceptions

to always be ValueError. Add the beginnings of to_dict()
This commit is contained in:
Jason Paryani
2013-09-03 00:25:32 -07:00
parent 26579d307d
commit c900690b96
5 changed files with 190 additions and 39 deletions

View File

@@ -55,6 +55,9 @@ def test_failed_import():
with pytest.raises(ValueError):
bar.foo = foo
def test_defualt_import_hook():
import addressbook_capnp
def test_add_import_hook():
capnp.add_import_hook([this_dir])