Skip to content

Instantly share code, notes, and snippets.

@manfre
Created September 24, 2013 20:57
Show Gist options
  • Save manfre/6691126 to your computer and use it in GitHub Desktop.
Save manfre/6691126 to your computer and use it in GitHub Desktop.
Django test suite run with sqlite on Python 2.7.5
======================================================================
FAIL: test_templates (template_tests.tests.TemplateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\projects\django\django\tests\template_tests\tests.py", line 621, in test_templates
('-'*70, ("\n%s\n" % ('-'*70)).join(failures)))
AssertionError: Tests failed:
----------------------------------------------------------------------
Template test (Cached='False', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=False): filter-timeuntil10 -- FAILED. Expected u'0\xa0minutes', got u'59\xa0minutes'
----------------------------------------------------------------------
Template test (Cached='True', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=False): filter-timeuntil10 -- FAILED. Expected u'0\xa0minutes', got u'59\xa0minutes'
----------------------------------------------------------------------
Template test (Cached='False', TEMPLATE_STRING_IF_INVALID='INVALID', TEMPLATE_DEBUG=False): filter-timeuntil10 -- FAILED. Expected u'0\xa0minutes', got u'59\xa0minutes'
----------------------------------------------------------------------
Template test (Cached='True', TEMPLATE_STRING_IF_INVALID='INVALID', TEMPLATE_DEBUG=False): filter-timeuntil10 -- FAILED. Expected u'0\xa0minutes', got u'59\xa0minutes'
----------------------------------------------------------------------
Template test (Cached='False', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=True): filter-timeuntil10 -- FAILED. Expected u'0\xa0minutes', got u'59\xa0minutes'
----------------------------------------------------------------------
Template test (Cached='True', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=True): filter-timeuntil10 -- FAILED. Expected u'0\xa0minutes', got u'59\xa0minutes'
======================================================================
FAIL: test_datetime_with_local_tzinfo (utils_tests.test_dateformat.DateFormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\projects\django\django\tests\utils_tests\test_dateformat.py", line 39, in test_datetime_with_local_tzinfo
self.assertEqual(datetime.fromtimestamp(int(format(dt, 'U'))), dt.replace(tzinfo=None))
AssertionError: datetime.datetime(2009, 5, 15, 23, 30, 30) != datetime.datetime(2009, 5, 16, 5, 30, 30)
======================================================================
FAIL: test_datetime_with_tzinfo (utils_tests.test_dateformat.DateFormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\projects\django\django\tests\utils_tests\test_dateformat.py", line 48, in test_datetime_with_tzinfo
self.assertEqual(datetime.fromtimestamp(int(format(dt, 'U'))), dt.astimezone(ltz).replace(tzinfo=None))
AssertionError: datetime.datetime(2009, 5, 15, 23, 30, 30) != datetime.datetime(2009, 5, 16, 5, 30, 30)
======================================================================
FAIL: test_custom_project_template_from_tarball_by_url (admin_scripts.tests.StartProject)
Make sure the startproject management command is able to use a different project template from a tarball via a url
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\projects\django\django\tests\admin_scripts\tests.py", line 1604, in test_custom_project_template_from_tarball_by_url
self.assertNoOutput(err)
File "C:\projects\django\django\tests\admin_scripts\tests.py", line 181, in assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually contains '%s'" % stream)
AssertionError: Stream should be empty: actually contains 'Traceback (most recent call last):
File "C:\projects\django\django\django\bin\django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "C:\projects\django\django\django\core\management\__init__.py", line 397, in execute_from_command_line
utility.execute()
File "C:\projects\django\django\django\core\management\__init__.py", line 390, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "C:\projects\django\django\django\core\management\base.py", line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File "C:\projects\django\django\django\core\management\base.py", line 289, in execute
output = self.handle(*args, **options)
File "C:\projects\django\django\django\core\management\commands\startproject.py", line 31, in handle
super(Command, self).handle('project', project_name, target, **options)
File "C:\projects\django\django\django\core\management\templates.py", line 122, in handle
base_subdir)
File "C:\projects\django\django\django\core\management\templates.py", line 205, in handle_template
return self.extract(absolute_path)
File "C:\projects\django\django\django\core\management\templates.py", line 299, in extract
archive.extract(filename, tempdir)
File "C:\projects\django\django\django\utils\archive.py", line 49, in extract
with Archive(path) as archive:
File "C:\projects\django\django\django\utils\archive.py", line 58, in __init__
self._archive = self._archive_cls(file)(file)
File "C:\projects\django\django\django\utils\archive.py", line 138, in __init__
self._archive = tarfile.open(file)
File "C:\Python27\Lib\tarfile.py", line 1665, in open
raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
'
======================================================================
FAIL: test_zero_timeout (cache.tests.FileBasedCacheTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\projects\django\django\tests\cache\tests.py", line 466, in test_zero_timeout
self.assertEqual(self.cache.get('key1'), None)
AssertionError: u'eggs' != None
======================================================================
FAIL: test_no_collectstatic_emulation (servers.tests.LiveServerViews)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\projects\django\django\tests\servers\tests.py", line 148, in test_no_collectstatic_emulation
self.assertEqual(err.code, 404, 'Expected 404 response')
AssertionError: Expected 404 response
----------------------------------------------------------------------
Ran 6131 tests in 259.476s
FAILED (failures=6, skipped=483, expected failures=11)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Traceback (most recent call last):
File "tests\runtests.py", line 376, in <module>
options.failfast, args)
File "tests\runtests.py", line 222, in django_tests
teardown(state)
File "tests\runtests.py", line 190, in teardown
shutil.rmtree(six.text_type(TEMP_DIR))
File "C:\Python27\Lib\shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "C:\Python27\Lib\shutil.py", line 250, in rmtree
os.remove(fullname)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment