Changes between Initial Version and Version 5 of Ticket #15542
- Timestamp:
- Jun 19, 2011, 4:09:08 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15542
- Property Component Contrib apps → contrib.contenttypes
- Property Type → Bug
- Property Severity → Normal
- Property Milestone → 1.3
- Property Triage Stage Unreviewed → Accepted
- Property Easy pickings unset
- Property UI/UX unset
-
Ticket #15542 – Description
initial v5 28 28 The minimum required to have the django tests fail is: 29 29 {{{ 30 python manage.py test contenttypes 31 sites.SitesFrameworkTests.test_get_current_site 30 python manage.py test contenttypes sites.SitesFrameworkTests.test_get_current_site 32 31 }}} 33 32 34 33 Switching the order causes no failure 35 34 {{{ 36 python manage.py test sites.SitesFrameworkTests.test_get_current_site 37 contenttypes 35 python manage.py test sites.SitesFrameworkTests.test_get_current_site contenttypes 38 36 }}} 39 37 … … 45 43 ---------------------------------------------------------------------- 46 44 Traceback (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__ 50 46 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 54 48 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 58 50 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 62 52 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 66 54 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 70 56 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 74 58 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 78 60 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 82 62 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 86 64 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 90 66 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 94 68 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 98 70 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 102 72 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 106 74 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 110 76 return self.cursor.execute(query, args) 111 77 DatabaseError: no such savepoint … … 122 88 {{{ 123 89 LOG: 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 ) 90 LOG: statement: SELECT "auth_permission"."id", "auth_permission"."name", "auth_permission"."content_type_id", "auth_permission"."codename" FROM "auth_permission" 91 WHERE ("auth_permission"."codename" = E'add_user' AND "auth_permission"."content_type_id" = 3 ) 129 92 LOG: 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" 93 LOG: statement: INSERT INTO "auth_permission" ("name", "content_type_id", "codename") VALUES (E'Can add user', 3, E'add_user') RETURNING "auth_permission"."id" 133 94 LOG: 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". 95 ERROR: insert or update on table "auth_permission" violates foreign key constraint "content_type_id_refs_id_728de91f" 96 DETAIL: Key (content_type_id)=(3) is not present in table "django_content_type". 138 97 STATEMENT: COMMIT 139 98 LOG: statement: BEGIN; SET TRANSACTION ISOLATION LEVEL READ COMMITTED … … 146 105 LOG: statement: ROLLBACK 147 106 LOG: statement: DROP DATABASE "test_jason_db" 148 149 107 }}}