Change expect_exception to allow a callable instead of an re
commit35978c76b19f32bd80db22c6505e649f10eb3ec8
authorOlly Betts <olly@survex.com>
Mon, 23 Nov 2015 22:10:44 +0000 (24 11:10 +1300)
committerOlly Betts <olly@survex.com>
Mon, 23 Nov 2015 22:10:44 +0000 (24 11:10 +1300)
tree0fd8bf9f46534beaf0b82ec4c298c41ee726e788
parent1c3401231eb4b87a1ad26034fe92515ef94ff0d3
Change expect_exception to allow a callable instead of an re

The re object seemed to be resulting in a memory leak being reported
under Python 3.2, and a callable is a more flexible solution anyway.
xapian-bindings/python3/smoketest.py
xapian-bindings/python3/testsuite.py