+ 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.
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?
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): self._as_ output( "\n%s: " % (error,)), textoutput)
+ error = 'TypeError'
+ else:
+ error = 'SyntaxError'
+ self.assertIn(
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?