Changes between Initial Version and Version 1 of Ticket #18103


Ignore:
Timestamp:
Apr 11, 2012, 6:42:46 AM (13 years ago)
Author:
Łukasz Rekucki
Comment:

Fixed formatting for you ;)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18103 – Description

    initial v1  
    11On updating to r17895, lots of tests appear to have stopped working. Here's the tail end of the test run:
    22
     3{{{
    34======================================================================
    45ERROR: test_user_permission_performance
     
    9293Destroying test database for alias 'other'...
    9394vinay@eta-oneiric64:~/projects/django/tests$
     95}}}
    9496
    9597All the errors appear to have the same root cause. I'm testing with
     
    9799bit. The tests were run using
    98100
    99 PYTHONPATH=.. python runtests.py --settings test_sqlite
     101{{{PYTHONPATH=.. python runtests.py --settings test_sqlite}}}
    100102
    101103in the tests subdirectory.
     
    103105The errors seem to be related to Aymeric's change in r17894. If I change
    104106
     107{{{#!python
    105108    def _reset_dicts(self, value=None):
    106109        builtins = {'True': True, 'False': False, 'None': None}
     
    108111            builtins.update(value)
    109112        self.dicts = [builtins]
     113}}}
    110114
    111115to the seemingly equivalent
    112116
     117{{{#!python
    113118    def _reset_dicts(self, value=None):
    114119        value = copy(value or {})
    115120        value.update({'True': True, 'False': False, 'None': None})
    116121        self.dicts = [value]
     122}}}
    117123
    118124then the errors no longer occur.
Back to Top