Skip to content

Instantly share code, notes, and snippets.

@jphalip
Created November 15, 2014 14:41
Show Gist options
  • Save jphalip/95da5f97c02ab10b4966 to your computer and use it in GitHub Desktop.
Save jphalip/95da5f97c02ab10b4966 to your computer and use it in GitHub Desktop.
Django core test suite failures
vagrant@djangocore:~$ runtests3.3-sqlite
Testing against Django installed in '/django/django'
Creating test database for alias 'default'...
Creating test database for alias 'other'...
.........................................................................................................................................................................................s........................................................................................................................................x..........................................................................................................................................................................................................................................................ssssssssssss.sssssssss....................................................................................................................................................................ss........................................................................sssssssss............................................................................................................................................................................................sss..................................s...............................................ss...ss...s.s.............................s.sssssss.............................s..........s......................s........................................................................................................................................sssssssssssssssssssssssssssssssssssssssssssss.................................................................................................s.....................................................................................................s.s....ss.....................s...............s..........................................................................s.............................................s..sss......................s..............s................................................................................................................................................s.......F......................................................................................................................................................................................................................................................................................EEEEE..................................................................................................................s........................s.................s..........................................................x..................................................................................................................................................................................s.............s...ss...................................s......s..s..................................s.....................................................................................................................................................................................................................................................................................s................................................................................................................................................................................................................................................s....sssssssssssssssssssssssssssssssssssssssssssss.....................................................s..........................................................s................................................................................................................................................................................................x.........................................sss.....................s................................................................................................................................................................................................................................................................................................................................................ss...............................x....s.............x.............................................................................................................................s............................................................................s............................................xx.................................................ssssssssssssssssssssssssssssssss........................................................................................................................................................................s...........................................................................................................................................................................................................................................................................................................................s................sssssss....s.......ss.....s......s...ssss..s..s.s...............s.s......s........................................................................................................................................................................................................................................................................................................................................................................................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss..sssssssssssssssssss..........s.........................................ss..................ssssss........................ssssssssssssssssss......sss...............................................................................................s.................................................................................s...............................................................................................ss....EEEEE.....................EEEEE................s.........................................................................................................................................F....................s................................s..s...........................................................s.s..ss.....sss.....s...s...ssssssssss..s...................ss......s.........................s....................ssssssssssssssssssss.................................................................................................................................................................................................................................sss................sssssssssssssssssssss...................................................................................................................................................................................................................................................ssssss.............................................................................................ss.............ss............................s....................................................................................................................................................................................................................................................................................................................................................s.ss.................................................................................................................sssss..........................................................................................................ssss.......
======================================================================
ERROR: test_aggregation (from_db_value.tests.FromDBValueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/from_db_value/tests.py", line 21, in test_aggregation
maximum = CashModel.objects.aggregate(m=Max('cash'))['m']
File "/django/django/db/models/manager.py", line 86, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/django/django/db/models/query.py", line 340, in aggregate
return query.get_aggregation(using=self.db, force_subq=force_subq)
File "/django/django/db/models/sql/query.py", line 389, in get_aggregation
in zip(query.aggregate_select.items(), result)
File "/django/django/db/models/sql/query.py", line 388, in <genexpr>
for (alias, aggregate), val
File "/django/django/db/models/sql/query.py", line 327, in resolve_aggregate
value = converter(value, connection)
File "/django/tests/from_db_value/models.py", line 23, in from_db_value
cash.vendor = connection.vendor
AttributeError: 'decimal.Decimal' object has no attribute 'vendor'
======================================================================
ERROR: test_connection (from_db_value.tests.FromDBValueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/from_db_value/tests.py", line 29, in test_connection
instance = CashModel.objects.get()
File "/django/django/db/models/manager.py", line 86, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/django/django/db/models/query.py", line 366, in get
num = len(clone)
File "/django/django/db/models/query.py", line 143, in __len__
self._fetch_all()
File "/django/django/db/models/query.py", line 980, in _fetch_all
self._result_cache = list(self.iterator())
File "/django/django/db/models/query.py", line 290, in iterator
for row in compiler.results_iter():
File "/django/django/db/models/sql/compiler.py", line 764, in results_iter
row = self.apply_converters(row, converters)
File "/django/django/db/models/sql/compiler.py", line 711, in apply_converters
value = converter(value, self.connection)
File "/django/tests/from_db_value/models.py", line 23, in from_db_value
cash.vendor = connection.vendor
AttributeError: 'decimal.Decimal' object has no attribute 'vendor'
======================================================================
ERROR: test_defer (from_db_value.tests.FromDBValueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/from_db_value/tests.py", line 26, in test_defer
self.assertIsInstance(instance.cash, Cash)
File "/django/django/db/models/query_utils.py", line 116, in __get__
instance._state.db).get(pk=instance.pk),
File "/django/django/db/models/query.py", line 366, in get
num = len(clone)
File "/django/django/db/models/query.py", line 143, in __len__
self._fetch_all()
File "/django/django/db/models/query.py", line 980, in _fetch_all
self._result_cache = list(self.iterator())
File "/django/django/db/models/query.py", line 290, in iterator
for row in compiler.results_iter():
File "/django/django/db/models/sql/compiler.py", line 764, in results_iter
row = self.apply_converters(row, converters)
File "/django/django/db/models/sql/compiler.py", line 711, in apply_converters
value = converter(value, self.connection)
File "/django/tests/from_db_value/models.py", line 23, in from_db_value
cash.vendor = connection.vendor
AttributeError: 'decimal.Decimal' object has no attribute 'vendor'
======================================================================
ERROR: test_simple_load (from_db_value.tests.FromDBValueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/from_db_value/tests.py", line 13, in test_simple_load
instance = CashModel.objects.get()
File "/django/django/db/models/manager.py", line 86, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/django/django/db/models/query.py", line 366, in get
num = len(clone)
File "/django/django/db/models/query.py", line 143, in __len__
self._fetch_all()
File "/django/django/db/models/query.py", line 980, in _fetch_all
self._result_cache = list(self.iterator())
File "/django/django/db/models/query.py", line 290, in iterator
for row in compiler.results_iter():
File "/django/django/db/models/sql/compiler.py", line 764, in results_iter
row = self.apply_converters(row, converters)
File "/django/django/db/models/sql/compiler.py", line 711, in apply_converters
value = converter(value, self.connection)
File "/django/tests/from_db_value/models.py", line 23, in from_db_value
cash.vendor = connection.vendor
AttributeError: 'decimal.Decimal' object has no attribute 'vendor'
======================================================================
ERROR: test_values (from_db_value.tests.FromDBValueTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/from_db_value/tests.py", line 18, in test_values
self.assertIsInstance(values_list[0], Cash)
File "/django/django/db/models/query.py", line 201, in __getitem__
return list(qs)[0]
File "/django/django/db/models/query.py", line 162, in __iter__
self._fetch_all()
File "/django/django/db/models/query.py", line 980, in _fetch_all
self._result_cache = list(self.iterator())
File "/django/django/db/models/query.py", line 1232, in iterator
for row in self.query.get_compiler(self.db).results_iter():
File "/django/django/db/models/sql/compiler.py", line 764, in results_iter
row = self.apply_converters(row, converters)
File "/django/django/db/models/sql/compiler.py", line 711, in apply_converters
value = converter(value, self.connection)
File "/django/tests/from_db_value/models.py", line 23, in from_db_value
cash.vendor = connection.vendor
AttributeError: 'decimal.Decimal' object has no attribute 'vendor'
======================================================================
ERROR: test_command_help (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_compilation.py", line 139, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_multiple_locales_excluded (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_compilation.py", line 139, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_multiple_locales_excluded_with_locale (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_compilation.py", line 139, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_one_locale_excluded (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_compilation.py", line 139, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_one_locale_excluded_with_locale (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_compilation.py", line 139, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_command_help (i18n.test_extraction.ExcludedLocaleExtractionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_extraction.py", line 607, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_multiple_locales_excluded (i18n.test_extraction.ExcludedLocaleExtractionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_extraction.py", line 607, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_multiple_locales_excluded_with_locale (i18n.test_extraction.ExcludedLocaleExtractionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_extraction.py", line 607, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_one_locale_excluded (i18n.test_extraction.ExcludedLocaleExtractionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_extraction.py", line 607, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
ERROR: test_one_locale_excluded_with_locale (i18n.test_extraction.ExcludedLocaleExtractionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/i18n/test_extraction.py", line 607, in setUp
shutil.copytree('canned_locale', 'locale')
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/shutil.py", line 295, in copytree
os.makedirs(dst)
File "/home/vagrant/.virtualenvs/py3.3/lib/python3.3/os.py", line 266, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists (mode 755 != expected mode 775): 'locale'
======================================================================
FAIL: test_fixtures_loaded (fixtures_regress.tests.TestLoadFixtureFromOtherAppDirectory)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/fixtures_regress/tests.py", line 906, in test_fixtures_loaded
self.assertGreater(count, 0, "Fixtures not loaded properly.")
AssertionError: 0 not greater than 0 : Fixtures not loaded properly.
======================================================================
FAIL: test_makemigrations_with_custom_name (migrations.test_commands.MakeMigrationsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/django/tests/migrations/test_commands.py", line 543, in test_makemigrations_with_custom_name
content = cmd("0002", migration_name_0002, "--empty")
File "/django/tests/migrations/test_commands.py", line 529, in cmd
self.assertTrue(os.path.exists(migration_file))
AssertionError: False is not true
----------------------------------------------------------------------
Ran 7587 tests in 355.888s
FAILED (failures=2, errors=15, skipped=481, expected failures=7)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment