[Python-modules-team] Bug#844139: python-django: FTBFS: Tests failures

Raphael Hertzog hertzog at debian.org
Wed Nov 16 17:44:49 UTC 2016


Hi,

On Sat, 12 Nov 2016, Scott Kitterman wrote:
> > This failure happens on a CPU with TSX extensions available, but is not
> > reproducible on a machine without them. 

I can't reproduce this either on my machine. But I have other failures
(see below).

Lucas, can you see if you reproduce your problem with this small
patch:
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        set -e; cd tests && for python in $$(pyversions -s) $$(py3versions -s); do \
                echo "——— Running tests with $$python ———"; \
-               LC_ALL=C.UTF-8 PYTHONPATH=.. $$python ./runtests.py --verbosity=2; \
+               LC_ALL=C.UTF-8 PYTHONPATH=.. $$python ./runtests.py --verbosity=2 --parallel=4; \
        done
 endif
 
My failures:
======================================================================
ERROR: test_command_help (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/<<PKGBUILDDIR>>/tests/i18n/test_compilation.py", line 124, in setUp
    shutil.copytree('canned_locale', 'locale')
  File "/usr/lib/python2.7/shutil.py", line 177, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: 'locale'

======================================================================
ERROR: test_multiple_locales_excluded (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/<<PKGBUILDDIR>>/tests/i18n/test_compilation.py", line 124, in setUp
    shutil.copytree('canned_locale', 'locale')
  File "/usr/lib/python2.7/shutil.py", line 177, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: 'locale'

======================================================================
ERROR: test_multiple_locales_excluded_with_locale (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/<<PKGBUILDDIR>>/tests/i18n/test_compilation.py", line 124, in setUp
    shutil.copytree('canned_locale', 'locale')
  File "/usr/lib/python2.7/shutil.py", line 177, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: 'locale'

======================================================================
ERROR: test_one_locale_excluded (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/<<PKGBUILDDIR>>/tests/i18n/test_compilation.py", line 124, in setUp
    shutil.copytree('canned_locale', 'locale')
  File "/usr/lib/python2.7/shutil.py", line 177, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: 'locale'

======================================================================
ERROR: test_one_locale_excluded_with_locale (i18n.test_compilation.ExcludedLocaleCompilationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/<<PKGBUILDDIR>>/tests/i18n/test_compilation.py", line 124, in setUp
    shutil.copytree('canned_locale', 'locale')
  File "/usr/lib/python2.7/shutil.py", line 177, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 17] File exists: 'locale'

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



More information about the Python-modules-team mailing list