biopython/biopython — pull request #77 by brandoninvergo (2012-10-12 11:26:57+00:00)
Title: Py3.3 test errors

The problem seems to have stemmed from this:
http://docs.python.org/dev/whatsnew/3.3.html#pep-3151

FYI the problems were twofold. First of all, I was testing that arguments expected to be filenames were actually strings by checking that a TypeError was raised from os.path.exists(). Apparently now in Py3.3, os.path.exists(1) returns True rather than raises an exception. Makes...uh...sense....I guess.

Second, when I changed to passing list() instead of an int as a bogus value, I found that Py3.3 now throws OSErrors insteald of TypeErrors. So, I added OSError to the appropriate assertRaises tuples.

The tests now pass for me with 2.7.3, 3.2.3 and 3.3.0.