Opened 11 years ago
Closed 11 years ago
#953 closed defect (wontfix)
Skip tests know to fail under Python 2.6
| Reported by: | Matt Molyneaux | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | programming | Keywords: | test py2.6 |
| Cc: | Parent Tickets: |
Description
As stated in #909, there are some tests that fail under Python 2.6. Until pytest is fixed we should skip these tests when we detect we're running Python 2.6.
Change History (3)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
As of v0.8.0, MediaGoblin has dropped support for Python 2.6. Is there any reason not to close this ticket as wontfix?
comment:3 by , 11 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |

Just to be sure that these tests are failing because of #909, here's the relevant output of .runtests.sh:
________________ TestUserUrlForSelf.test_url_for_self_not_callable ________________ Traceback (most recent call last): File "/home/moggers87/workspace/mediagoblin/mediagoblin/tests/test_modelmethods.p y", line 226, in test_url_for_self_not_callable assert excinfo.errisinstance(TypeError) AssertionError: assert <bound method ExceptionInfo.errisinstance of <ExceptionInfo TypeError tblen=2>>(TypeError) + where <bound method ExceptionInfo.errisinstance of <ExceptionInfo TypeError tbl en=2>> = <ExceptionInfo TypeError tblen=2>.errisinstance ------------------------------ Captured stdout setup ------------------------------ -> Initializing main mediagoblin tables... done. + Laying foundations for Privilege table -> Initializing plugin "mediagoblin.plugins.oauth"... done. -> Initializing plugin "mediagoblin.plugins.openid"... done. -> Initializing plugin "mediagoblin.media_types.image"... done. -> Initializing plugin "mediagoblin.media_types.pdf"... done. -> Initializing main mediagoblin tables... done. + Laying foundations for Privilege table -> Initializing plugin "mediagoblin.plugins.oauth"... done. -> Initializing plugin "mediagoblin.plugins.openid"... done. -> Initializing plugin "mediagoblin.media_types.image"... done. -> Initializing plugin "mediagoblin.media_types.pdf"... done. _________________________ TestSubmission.test_processing __________________________ Traceback (most recent call last): File "/home/moggers87/workspace/mediagoblin/mediagoblin/tests/test_submission.py" , line 383, in test_processing assert last_size > size AssertionError: assert 3142L > 13509L ------------------------------ Captured stdout setup ------------------------------ -> Initializing main mediagoblin tables... done. + Laying foundations for Privilege table -> Initializing plugin "mediagoblin.plugins.oauth"... done. -> Initializing plugin "mediagoblin.plugins.openid"... done. -> Initializing plugin "mediagoblin.media_types.image"... done. -> Initializing plugin "mediagoblin.media_types.pdf"... done. -> Initializing main mediagoblin tables... done. + Laying foundations for Privilege table -> Initializing plugin "mediagoblin.plugins.oauth"... done. -> Initializing plugin "mediagoblin.plugins.openid"... done. -> Initializing plugin "mediagoblin.media_types.image"... done. -> Initializing plugin "mediagoblin.media_types.pdf"... done. ------------------------------ Captured stderr setup ------------------------------ /home/moggers87/workspace/mediagoblin/lib/python2.6/site-packages/WTForms-2.0.1-py2 .6.egg/wtforms/fields/simple.py:23: DeprecationWarning: The TextField alias for Str ingField has been deprecated and will be removed in WTForms 3.0 DeprecationWarning ------------------------------ Captured stderr call ------------------------------- /home/moggers87/workspace/mediagoblin/lib/python2.6/site-packages/WTForms-2.0.1-py2 .6.egg/wtforms/fields/simple.py:23: DeprecationWarning: The TextField alias for Str ingField has been deprecated and will be removed in WTForms 3.0 DeprecationWarning /home/moggers87/workspace/mediagoblin/lib/python2.6/site-packages/WTForms-2.0.1-py2 .6.egg/wtforms/fields/simple.py:23: DeprecationWarning: The TextField alias for Str ingField has been deprecated and will be removed in WTForms 3.0 DeprecationWarning /home/moggers87/workspace/mediagoblin/lib/python2.6/site-packages/SQLAlchemy-0.8.7- py2.6-linux-i686.egg/sqlalchemy/engine/default.py:459: SAWarning: Unicode type rece ived non-unicode bind param value. DEBUG:mediagoblin.processing.task:Processing <MediaEntry 1: Big Blue> /home/moggers87/workspace/mediagoblin/lib/python2.6/site-packages/WTForms-2.0.1-py2 .6.egg/wtforms/ext/sqlalchemy/__init__.py:7: DeprecationWarning: wtforms.ext.sqlalc hemy is deprecated, and will be removed in WTForms 3.0. Instead transition to the e xcellent WTForms-Alchemy package: https://github.com/kvesteri/wtforms-alchemy DeprecationWarning