The Python programming language
assertWarnsRegex() checks are not longer successful if the callable is None. Added tests for assertRaises().