Code review comment for lp://qastaging/~jml/testtools/address-0.9.18-release-issues

Revision history for this message
Martin Packman (gz) wrote :

Looks good overall.

+ if sys.version_info > (3, 3):
+ return "FileExistsError"

As discussed on IRC, Python 3.3 makes the exception name we should expect platform-dependant, so would be best to allow either using MatchesRegex or similar.

+ if sys.version_info > (3, 3):
+ error = 'TypeError'
+ else:
+ error = 'SyntaxError'
+ self.assertIn(self._as_output("\n%s: " % (error,)), textoutput)

Just ran this with the pre-release Python 3.3 I had installed and the test failed. Probably wants the same treatment of just accepting both exception names, rather than using a version check?

review: Needs Fixing

« Back to merge proposal