Changes between Initial Version and Version 1 of Ticket #18103
- Timestamp:
- Apr 11, 2012, 6:42:46 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18103 – Description
initial v1 1 1 On updating to r17895, lots of tests appear to have stopped working. Here's the tail end of the test run: 2 2 3 {{{ 3 4 ====================================================================== 4 5 ERROR: test_user_permission_performance … … 92 93 Destroying test database for alias 'other'... 93 94 vinay@eta-oneiric64:~/projects/django/tests$ 95 }}} 94 96 95 97 All the errors appear to have the same root cause. I'm testing with … … 97 99 bit. The tests were run using 98 100 99 PYTHONPATH=.. python runtests.py --settings test_sqlite 101 {{{PYTHONPATH=.. python runtests.py --settings test_sqlite}}} 100 102 101 103 in the tests subdirectory. … … 103 105 The errors seem to be related to Aymeric's change in r17894. If I change 104 106 107 {{{#!python 105 108 def _reset_dicts(self, value=None): 106 109 builtins = {'True': True, 'False': False, 'None': None} … … 108 111 builtins.update(value) 109 112 self.dicts = [builtins] 113 }}} 110 114 111 115 to the seemingly equivalent 112 116 117 {{{#!python 113 118 def _reset_dicts(self, value=None): 114 119 value = copy(value or {}) 115 120 value.update({'True': True, 'False': False, 'None': None}) 116 121 self.dicts = [value] 122 }}} 117 123 118 124 then the errors no longer occur.