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.
* 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>
Comment (by gmunumel):
Thanks Tim. That fixed it.
--
Ticket URL: <https://code.djangoproject.com/ticket/24392#comment:2>
* status: new => closed
* resolution: => fixed
--
Ticket URL: <https://code.djangoproject.com/ticket/24392#comment:3>