Skip to content

Instantly share code, notes, and snippets.

@mjtamlyn
Created January 7, 2014 18:38
Show Gist options
  • Save mjtamlyn/8304266 to your computer and use it in GitHub Desktop.
Save mjtamlyn/8304266 to your computer and use it in GitHub Desktop.
Django 1.7 on python 2.7 with the saferef patch
PYTHONPATH=.. ./runtests.py dispatch
Testing against Django installed in '/Users/marc/code/django/django'
Creating test database for alias 'default'...
Creating test database for alias 'other'...
.FFFFFFF...E
======================================================================
ERROR: dispatch.tests.test_saferef (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: dispatch.tests.test_saferef
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 252, in _find_tests
module = self._get_module_from_name(name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
__import__(name)
File "/Users/marc/code/django/tests/dispatch/tests/test_saferef.py", line 3, in <module>
from django.dispatch.saferef import safeRef
ImportError: No module named saferef
======================================================================
FAIL: testDisconnection (dispatch.tests.test_dispatcher.DispatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 150, in testDisconnection
self._testIsClean(a_signal)
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 49, in _testIsClean
self.assertEqual(signal.receivers, [])
AssertionError: Lists differ: [((4469736272, 4455277880), <w... != []
First list contains 1 additional elements.
First extra element 0:
((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272)
- [((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272)]
+ []
======================================================================
FAIL: testExact (dispatch.tests.test_dispatcher.DispatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 60, in testExact
self._testIsClean(a_signal)
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 49, in _testIsClean
self.assertEqual(signal.receivers, [])
AssertionError: Lists differ: [((4469736272, 4455277880), <w... != []
First list contains 1 additional elements.
First extra element 0:
((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272)
- [((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272)]
+ []
======================================================================
FAIL: testGarbageCollected (dispatch.tests.test_dispatcher.DispatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 78, in testGarbageCollected
self._testIsClean(a_signal)
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 49, in _testIsClean
self.assertEqual(signal.receivers, [])
AssertionError: Lists differ: [((4469736272, 4455277880), <w... != []
First list contains 2 additional elements.
First extra element 0:
((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272)
+ []
- [((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272),
- (((4469736080, 4468775464), 4468782992),
- <weakref at 0x10a5402a8; dead>,
- (4469736080, 4468775464))]
======================================================================
FAIL: testIgnoredSender (dispatch.tests.test_dispatcher.DispatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 68, in testIgnoredSender
self._testIsClean(a_signal)
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 49, in _testIsClean
self.assertEqual(signal.receivers, [])
AssertionError: Lists differ: [((4469736272, 4455277880), <w... != []
First list contains 2 additional elements.
First extra element 0:
((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272)
+ []
- [((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272),
- (((4469736080, 4468775464), 4468782992),
- <weakref at 0x10a5402a8; dead>,
- (4469736080, 4468775464))]
======================================================================
FAIL: testMultipleRegistration (dispatch.tests.test_dispatcher.DispatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 108, in testMultipleRegistration
self.assertEqual(len(a_signal.receivers), 1)
AssertionError: 3 != 1
======================================================================
FAIL: testRobust (dispatch.tests.test_dispatcher.DispatcherTests)
Test the sendRobust function
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 137, in testRobust
self._testIsClean(a_signal)
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 49, in _testIsClean
self.assertEqual(signal.receivers, [])
AssertionError: Lists differ: [((4469736272, 4455277880), <w... != []
First list contains 3 additional elements.
First extra element 0:
((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272)
+ []
- [((4469736272, 4455277880), <weakref at 0x10a6ab7e0; dead>, 4469736272),
- (((4469736080, 4468775464), 4468782992),
- <weakref at 0x10a5402a8; dead>,
- (4469736080, 4468775464)),
- ((4469736080, 4455277880), <weakref at 0x10a543470; dead>, 4469736080)]
======================================================================
FAIL: testUidRegistration (dispatch.tests.test_dispatcher.DispatcherTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/marc/code/django/tests/dispatch/tests/test_dispatcher.py", line 123, in testUidRegistration
self.assertEqual(len(a_signal.receivers), 1)
AssertionError: 4 != 1
----------------------------------------------------------------------
Ran 12 tests in 0.048s
FAILED (failures=7, errors=1)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment