[Django] #24392: Error running test suite when I use branch 1.7

7 views
Skip to first unread message

Django

unread,
Feb 22, 2015, 2:40:20 PM2/22/15
to django-...@googlegroups.com
#24392: Error running test suite when I use branch 1.7
-------------------------------+--------------------
Reporter: gmunumel | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Hello guys.

I'm getting a weird error when I run the test suite in 1.7 branch.
The steps are:
1) Clone repository:
{{{
git clone g...@github.com:github_nick/django.git
}}}
2) Run Test suite (everything goes fine)
3) Create a checkout for 1.7 branch:
{{{
git remote add upstream g...@github.com:django/django.git
git fetch upstream
git checkout -b test_1_7 upstream/stable/1.7.x
}}}
4) Run the test:
{{{
PYTHONPATH=..:$PYTHONPATH ./runtests.py
}}}

5) Get this error:

{{{
Testing against Django installed in
'/home/user/workspace/Code/django_orig/django/django'
Creating test database for alias 'default'...
Traceback (most recent call last):
File "./runtests.py", line 410, in <module>
options.failfast, args)
File "./runtests.py", line 252, in django_tests
test_labels or get_installed(), extra_tests=extra_tests)
File
"/home/user/workspace/Code/django_orig/django/django/test/runner.py", line
147, in run_tests
old_config = self.setup_databases()
File
"/home/user/workspace/Code/django_orig/django/django/test/runner.py", line
109, in setup_databases
return setup_databases(self.verbosity, self.interactive, **kwargs)
File
"/home/user/workspace/Code/django_orig/django/django/test/runner.py", line
299, in setup_databases
serialize=connection.settings_dict.get("TEST", {}).get("SERIALIZE",
True),
File
"/home/user/workspace/Code/django_orig/django/django/db/backends/creation.py",
line 385, in create_test_db
self.connection._test_serialized_contents =
self.serialize_db_to_string()
File
"/home/user/workspace/Code/django_orig/django/django/db/backends/creation.py",
line 421, in serialize_db_to_string
serializers.serialize("json", get_objects(), indent=None, stream=out)
File
"/home/user/workspace/Code/django_orig/django/django/core/serializers/__init__.py",
line 128, in serialize
s.serialize(queryset, **options)
File
"/home/user/workspace/Code/django_orig/django/django/core/serializers/base.py",
line 52, in serialize
for obj in queryset:
File
"/home/user/workspace/Code/django_orig/django/django/db/backends/creation.py",
line 417, in get_objects
for obj in queryset.iterator():
File
"/home/user/workspace/Code/django_orig/django/django/db/models/query.py",
line 265, in iterator
for row in compiler.results_iter():
File
"/home/user/workspace/Code/django_orig/django/django/db/models/sql/compiler.py",
line 700, in results_iter
for rows in self.execute_sql(MULTI):
File
"/home/user/workspace/Code/django_orig/django/django/db/models/sql/compiler.py",
line 786, in execute_sql
cursor.execute(sql, params)
File
"/home/user/workspace/Code/django_orig/django/django/db/backends/utils.py",
line 65, in execute
return self.cursor.execute(sql, params)
File "/home/user/workspace/Code/django_orig/django/django/db/utils.py",
line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File
"/home/user/workspace/Code/django_orig/django/django/db/backends/utils.py",
line 65, in execute
return self.cursor.execute(sql, params)
File
"/home/user/workspace/Code/django_orig/django/django/db/backends/sqlite3/base.py",
line 485, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table:
sites_framework_syndicatedarticle
}}}

I also posted on [http://stackoverflow.com/questions/28573564/error-
running-djangos-test-suite Stackoverflow].

Any idea?

Sorry if this is not the place for this.

--
Ticket URL: <https://code.djangoproject.com/ticket/24392>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 22, 2015, 2:55:28 PM2/22/15
to django-...@googlegroups.com
#24392: Error running test suite when I use branch 1.7
-------------------------------+--------------------------------------

Reporter: gmunumel | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

Ensure you've removed .pyc files: `git clean -fdx`

--
Ticket URL: <https://code.djangoproject.com/ticket/24392#comment:1>

Django

unread,
Feb 22, 2015, 5:38:37 PM2/22/15
to django-...@googlegroups.com
#24392: Error running test suite when I use branch 1.7
-------------------------------+--------------------------------------

Reporter: gmunumel | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by gmunumel):

Thanks Tim. That fixed it.

--
Ticket URL: <https://code.djangoproject.com/ticket/24392#comment:2>

Django

unread,
Feb 22, 2015, 5:39:08 PM2/22/15
to django-...@googlegroups.com
#24392: Error running test suite when I use branch 1.7
-------------------------------+--------------------------------------
Reporter: gmunumel | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by gmunumel):

* status: new => closed
* resolution: => fixed


--
Ticket URL: <https://code.djangoproject.com/ticket/24392#comment:3>

Reply all
Reply to author
Forward
0 new messages