Changes between Initial Version and Version 5 of Ticket #15542


Ignore:
Timestamp:
06/19/11 16:09:08 (4 years ago)
Author:
ramiro
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15542

    • Property Severity changed from to Normal
    • Property Patch needs improvement unset
    • Property Component changed from Contrib apps to contrib.contenttypes
    • Property Needs tests unset
    • Property Easy pickings unset
    • Property Milestone changed from to 1.3
    • Property Needs documentation unset
    • Property UI/UX unset
    • Property Type changed from to Bug
    • Property Triage Stage changed from Unreviewed to Accepted
  • Ticket #15542 – Description

    initial v5  
    2828The minimum required to have the django tests fail is:
    2929{{{
    30 python manage.py test contenttypes
    31 sites.SitesFrameworkTests.test_get_current_site
     30python manage.py test contenttypes sites.SitesFrameworkTests.test_get_current_site
    3231}}}
    3332
    3433Switching the order causes no failure
    3534{{{
    36 python manage.py test sites.SitesFrameworkTests.test_get_current_site
    37 contenttypes
     35python manage.py test sites.SitesFrameworkTests.test_get_current_site contenttypes
    3836}}}
    3937
     
    4543----------------------------------------------------------------------
    4644Traceback (most recent call last):
    47  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    48 lib/python2.6/site-packages/django/test/testcases.py", line 257, in
    49 __call__
     45 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/test/testcases.py", line 257, in __call__
    5046   self._pre_setup()
    51  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    52 lib/python2.6/site-packages/django/test/testcases.py", line 224, in
    53 _pre_setup
     47 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/test/testcases.py", line 224, in _pre_setup
    5448   self._fixture_setup()
    55  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    56 lib/python2.6/site-packages/django/test/testcases.py", line 515, in
    57 _fixture_setup
     49 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/test/testcases.py", line 515, in _fixture_setup
    5850   return super(TestCase, self)._fixture_setup()
    59  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    60 lib/python2.6/site-packages/django/test/testcases.py", line 236, in
    61 _fixture_setup
     51 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/test/testcases.py", line 236, in _fixture_setup
    6252   call_command('flush', verbosity=0, interactive=False, database=db)
    63  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    64 lib/python2.6/site-packages/django/core/management/__init__.py", line
    65 166, in call_command
     53 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/management/__init__.py", line 166, in call_command
    6654   return klass.execute(*args, **defaults)
    67  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    68 lib/python2.6/site-packages/django/core/management/base.py", line 220,
    69 in execute
     55 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/management/base.py", line 220, in execute
    7056   output = self.handle(*args, **options)
    71  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    72 lib/python2.6/site-packages/django/core/management/base.py", line 351,
    73 in handle
     57 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/management/base.py", line 351, in handle
    7458   return self.handle_noargs(**options)
    75  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    76 lib/python2.6/site-packages/django/core/management/commands/flush.py",
    77 line 75, in handle_noargs
     59 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/management/commands/flush.py", line 75, in handle_noargs
    7860   emit_post_sync_signal(all_models, verbosity, interactive, db)
    79  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    80 lib/python2.6/site-packages/django/core/management/sql.py", line 182,
    81 in emit_post_sync_signal
     61 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/management/sql.py", line 182, in emit_post_sync_signal
    8262   interactive=interactive, db=db)
    83  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    84 lib/python2.6/site-packages/django/dispatch/dispatcher.py", line 172,
    85 in send
     63 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/dispatch/dispatcher.py", line 172, in send
    8664   response = receiver(signal=self, sender=sender, **named)
    87  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    88 lib/python2.6/site-packages/django/contrib/auth/management/
    89 __init__.py", line 28, in create_permissions
     65 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/contrib/auth/management/__init__.py", line 28, in create_permissions
    9066   defaults={'name': name, 'content_type': ctype})
    91  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    92 lib/python2.6/site-packages/django/db/models/manager.py", line 135, in
    93 get_or_create
     67 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/db/models/manager.py", line 135, in get_or_create
    9468   return self.get_query_set().get_or_create(**kwargs)
    95  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    96 lib/python2.6/site-packages/django/db/models/query.py", line 387, in
    97 get_or_create
     69 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/db/models/query.py", line 387, in get_or_create
    9870   transaction.savepoint_rollback(sid, using=self.db)
    99  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    100 lib/python2.6/site-packages/django/db/transaction.py", line 242, in
    101 savepoint_rollback
     71 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/db/transaction.py", line 242, in savepoint_rollback
    10272   connection._savepoint_rollback(sid)
    103  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    104 lib/python2.6/site-packages/django/db/backends/__init__.py", line 61,
    105 in _savepoint_rollback
     73 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/db/backends/__init__.py", line 61, in _savepoint_rollback
    10674   self.cursor().execute(self.ops.savepoint_rollback_sql(sid))
    107  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
    108 lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/
    109 base.py", line 44, in execute
     75 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
    11076   return self.cursor.execute(query, args)
    11177DatabaseError: no such savepoint
     
    12288{{{
    12389LOG:  statement: BEGIN; SET TRANSACTION ISOLATION LEVEL READ COMMITTED
    124 LOG:  statement: SELECT "auth_permission"."id",
    125 "auth_permission"."name", "auth_permission"."content_type_id",
    126 "auth_permission"."codename" FROM "auth_permission" WHERE
    127 ("auth_permission"."codename" = E'add_user'  AND
    128 "auth_permission"."content_type_id" = 3 )
     90LOG:  statement: SELECT "auth_permission"."id", "auth_permission"."name", "auth_permission"."content_type_id", "auth_permission"."codename" FROM "auth_permission"
     91WHERE ("auth_permission"."codename" = E'add_user'  AND "auth_permission"."content_type_id" = 3 )
    12992LOG:  statement: SAVEPOINT s140735080041632_x1
    130 LOG:  statement: INSERT INTO "auth_permission" ("name",
    131 "content_type_id", "codename") VALUES (E'Can add user', 3,
    132 E'add_user') RETURNING "auth_permission"."id"
     93LOG:  statement: INSERT INTO "auth_permission" ("name", "content_type_id", "codename") VALUES (E'Can add user', 3, E'add_user') RETURNING "auth_permission"."id"
    13394LOG:  statement: COMMIT
    134 ERROR:  insert or update on table "auth_permission" violates foreign
    135 key constraint "content_type_id_refs_id_728de91f"
    136 DETAIL:  Key (content_type_id)=(3) is not present in table
    137 "django_content_type".
     95ERROR:  insert or update on table "auth_permission" violates foreign key constraint "content_type_id_refs_id_728de91f"
     96DETAIL:  Key (content_type_id)=(3) is not present in table "django_content_type".
    13897STATEMENT:  COMMIT
    13998LOG:  statement: BEGIN; SET TRANSACTION ISOLATION LEVEL READ COMMITTED
     
    146105LOG:  statement: ROLLBACK
    147106LOG:  statement: DROP DATABASE "test_jason_db"
    148 
    149107}}}
Back to Top