This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_packaging failures when run with -j
Type: behavior Stage: needs patch
Components: Distutils2, Tests Versions: Python 3.3
process
Status: closed Resolution:
Dependencies: Superseder: sysconfig.get_config_vars('srcdir') fails in specific cases
View: 12141
Assigned To: tarek Nosy List: alexis, eric.araujo, nadeem.vawda, python-dev, tarek
Priority: normal Keywords:

Created on 2011-05-21 10:42 by nadeem.vawda, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg136428 - (view) Author: Nadeem Vawda (nadeem.vawda) * (Python committer) Date: 2011-05-21 10:42
test_packaging fails when regrtest is run with the -j option (run multiple tests concurrently).


    $ ./python -Wd -E -bb -j0 -v test_packaging

    [snip]

    ======================================================================
    ERROR: test_build_ext (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'

    ======================================================================
    ERROR: test_compiler_option (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'

    ======================================================================
    ERROR: test_ext_fullpath (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'

    ======================================================================
    ERROR: test_finalize_options (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'

    ======================================================================
    ERROR: test_get_outputs (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'

    ======================================================================
    ERROR: test_get_source_files (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'

    ======================================================================
    ERROR: test_optional_extension (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'

    ======================================================================
    ERROR: test_solaris_enable_shared (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'

    ======================================================================
    ERROR: test_user_site (packaging.tests.test_command_build_ext.BuildExtTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/nadeem/code/src/cpython/python/Lib/packaging/tests/test_command_build_ext.py", line 34, in setUp
        shutil.copy(_get_source_filename(), self.tmp_dir)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 133, in copy
        copyfile(src, dst)
      File "/home/nadeem/code/src/cpython/python/Lib/shutil.py", line 98, in copyfile
        with open(src, 'rb') as fsrc:
    IOError: [Errno 2] No such file or directory: '/home/nadeem/code/src/cpython/python/build/test_python_17565/Modules/xxmodule.c'


It seems that these tests assume they are running under the top-level
directory of the checkout (which is not the case when -j is used).
msg136565 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-05-22 20:10
New changeset 1ba12ac770e0 by Tarek Ziade in branch 'default':
Issue 12132 - skip the test_buil_ext test if the xx module is not found
http://hg.python.org/cpython/rev/1ba12ac770e0
History
Date User Action Args
2022-04-11 14:57:17adminsetgithub: 56341
2011-05-22 20:11:18tareksetstatus: open -> closed
2011-05-22 20:10:30python-devsetnosy: + python-dev
messages: + msg136565
2011-05-22 20:04:44tareksetstatus: closed -> open
resolution: duplicate ->
2011-05-21 22:41:22tareksetstatus: open -> closed
resolution: duplicate
2011-05-21 22:39:35tareksetsuperseder: test_packaging failures when run with -j -> sysconfig.get_config_vars('srcdir') fails in specific cases
2011-05-21 22:39:35tarekunlinkissue12132 superseder
2011-05-21 22:38:34tareksetsuperseder: test_packaging failures when run with -j
2011-05-21 22:38:34tareklinkissue12132 superseder
2011-05-21 11:15:41pitrousetassignee: tarek

components: + Distutils2
nosy: + alexis, eric.araujo
2011-05-21 10:42:50nadeem.vawdacreate