- these tests were squashing deprecation warnings all along...
- refine this a bit to better check for exception type
- optional 'b' here for py3k