Tests using django-webtest pass on Django 1.3, Django 1.4, and Django 1.5 but fail on Django trunk.

  • Download Gist
django-simple-history failed tests.out
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
$ python setup.py test
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'mantainer'
warnings.warn(msg)
running test
running egg_info
writing django_simple_history.egg-info/PKG-INFO
writing top-level names to django_simple_history.egg-info/top_level.txt
writing dependency_links to django_simple_history.egg-info/dependency_links.txt
reading manifest file 'django_simple_history.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README'
warning: no files found matching 'AUTHORS'
writing manifest file 'django_simple_history.egg-info/SOURCES.txt'
running build_ext
Creating test database for alias 'default'...
EE................
======================================================================
ERROR: test_history_form (simple_history.tests.tests.AdminSiteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/trey/repos/django/django-simple-history/simple_history/tests/tests.py", line 260, in test_history_form
self.login(username='u', password='pass')
File "/home/trey/repos/django/django-simple-history/simple_history/tests/tests.py", line 246, in login
form = self.app.get(reverse('admin:index')).form
File "build/bdist.linux-i686/egg/django_webtest/__init__.py", line 97, in get
url, params, headers, extra_environ, status, expect_errors)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/app.py", line 199, in get
expect_errors=expect_errors)
File "build/bdist.linux-i686/egg/django_webtest/__init__.py", line 64, in do_request
response = super(DjangoTestApp, self).do_request(req, status, expect_errors)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/app.py", line 467, in do_request
res = req.get_response(app, catch_exc_info=True)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webob/request.py", line 1292, in send
application, catch_exc_info=True)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
app_iter = application(self.environ, start_response)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/lint.py", line 194, in lint_app
iterator = application(environ, start_response_wrapper)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 72, in __call__
return self.application(environ, start_response)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 240, in __call__
signals.request_started.send(sender=self.__class__)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 182, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/__init__.py", line 75, in close_old_connections
conn.abort()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 347, in abort
self.rollback()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 176, in rollback
self.validate_no_atomic_block()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 339, in validate_no_atomic_block
"This is forbidden when an 'atomic' block is active.")
TransactionManagementError: This is forbidden when an 'atomic' block is active.
 
======================================================================
ERROR: test_history_list (simple_history.tests.tests.AdminSiteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/trey/repos/django/django-simple-history/simple_history/tests/tests.py", line 252, in test_history_list
self.login(username='u', password='pass')
File "/home/trey/repos/django/django-simple-history/simple_history/tests/tests.py", line 246, in login
form = self.app.get(reverse('admin:index')).form
File "build/bdist.linux-i686/egg/django_webtest/__init__.py", line 97, in get
url, params, headers, extra_environ, status, expect_errors)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/app.py", line 199, in get
expect_errors=expect_errors)
File "build/bdist.linux-i686/egg/django_webtest/__init__.py", line 64, in do_request
response = super(DjangoTestApp, self).do_request(req, status, expect_errors)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/app.py", line 467, in do_request
res = req.get_response(app, catch_exc_info=True)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webob/request.py", line 1292, in send
application, catch_exc_info=True)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
app_iter = application(self.environ, start_response)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/webtest/lint.py", line 194, in lint_app
iterator = application(environ, start_response_wrapper)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 72, in __call__
return self.application(environ, start_response)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 240, in __call__
signals.request_started.send(sender=self.__class__)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 182, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/__init__.py", line 75, in close_old_connections
conn.abort()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 347, in abort
self.rollback()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 176, in rollback
self.validate_no_atomic_block()
File "/home/trey/.virtualenvs/simple_history/local/lib/python2.7/site-packages/django/db/backends/__init__.py", line 339, in validate_no_atomic_block
"This is forbidden when an 'atomic' block is active.")
TransactionManagementError: This is forbidden when an 'atomic' block is active.
 
----------------------------------------------------------------------
Ran 18 tests in 0.261s
 
FAILED (errors=2)
Destroying test database for alias 'default'...

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.