-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TST: require unittest2 for testing on Python 2.6? #8760
Comments
see pandas.util.testing usually just with tm.assertRaises(..): |
raise nose.SkipTest(...) |
Yes, we have work arounds, but they are certainly more awkward without using the standard backport. Is it that bad to add a testing dependency? |
then we have 2 ways of doing it if u want to fix all the occurrences and then remove it from the compat file would be ok this is a long standing issue - much of the testing infrastructure was done before the fixes existed so can be changed but each of the work around should be fixed in their entirety to avoid even more work arounds |
See also #7718, if we would drop 2.6 support, then the dependency problem is solved? |
iirc all of the major projects still support 2.6 |
There are some nice improvements available in the unittest module on Python 2.7 or later that aren't available on Python 2.6 without using the unittest2 library. In particular, I miss using
assertRaises
as a context manager andskiptest
.How about adding the module as a testing requirement on Python 2.6?
The text was updated successfully, but these errors were encountered: