divio/django-cms — Issue #1134: Tests now fail on Python 2.6/Django 1.2
Author: kezabelle
Created: 2012-01-05 21:46:26+00:00
State: open

The most recent commits -- those to [skip tests when no Internet connection is present](https://github.com/divio/django-cms/commit/ed193cd6b4e37c5020dfb3e721215080226fee8b) -- depend on ```unittest.skipIf()```. As far as I can remember, unittest only got further fleshed out with 2.7, and I don't know off the top of my head if Django's backport supports skipIf (I think I've seen it, which would make this an easy fix)

```
File "/path/django-cms/cms/tests/__init__.py", line 6, in
from cms.tests.docs import *
File "/pathdjango-cms/cms/tests/docs.py", line 28, in
class DocsTestCase(CMSTestCase):
File "/pathdjango-cms/cms/tests/docs.py", line 32, in DocsTestCase
@unittest.skipIf(has_no_internet(), "No internet")
AttributeError: 'module' object has no attribute 'skipIf'
```