[Python-modules-team] Bug#816435: TestStartProjectSettings fails on DebCI

Luke Faraone lfaraone at debian.org
Tue Mar 1 20:08:46 UTC 2016


Package: python3-django
Version: 1.9.2-1
Severity: minor

See <https://ci.debian.net/data/packages/unstable/amd64/p/python-django/20160301_011818.autopkgtest.log.gz>:

    ======================================================================
    ERROR: test_middleware_classes_headers (project_template.test_settings.TestStartProjectSettings)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/lib/python3.5/unittest/case.py", line 58, in testPartExecutor
        yield
      File "/usr/lib/python3.5/unittest/case.py", line 596, in run
        self.setUp()
      File "/tmp/adttmp.wI8Seo/tests/project_template/test_settings.py", line 24, in setUp
        shutil.copyfile(template_settings_py, test_settings_py)
      File "/usr/lib/python3.5/shutil.py", line 115, in copyfile
        with open(dst, 'wb') as fdst:
    PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/django/conf/project_template/project_name/settings.py'

    ----------------------------------------------------------------------

It looks like the test suite is trying to modify files in its own package. It
should instead use a temporary directory.



More information about the Python-modules-team mailing list