Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_packaging failures when run with -j #56341

Closed
nadeemvawda mannequin opened this issue May 21, 2011 · 2 comments
Closed

test_packaging failures when run with -j #56341

nadeemvawda mannequin opened this issue May 21, 2011 · 2 comments
Assignees
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@nadeemvawda
Copy link
Mannequin

nadeemvawda mannequin commented May 21, 2011

BPO 12132
Nosy @tarekziade, @merwok
Superseder
  • bpo-12141: sysconfig.get_config_vars('srcdir') fails in specific cases
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/tarekziade'
    closed_at = <Date 2011-05-22.20:11:18.696>
    created_at = <Date 2011-05-21.10:42:50.492>
    labels = ['type-bug', 'tests']
    title = 'test_packaging failures when run with -j'
    updated_at = <Date 2011-05-22.20:11:18.695>
    user = 'https://bugs.python.org/nadeemvawda'

    bugs.python.org fields:

    activity = <Date 2011-05-22.20:11:18.695>
    actor = 'tarek'
    assignee = 'tarek'
    closed = True
    closed_date = <Date 2011-05-22.20:11:18.696>
    closer = 'tarek'
    components = ['Tests', 'Distutils2']
    creation = <Date 2011-05-21.10:42:50.492>
    creator = 'nadeem.vawda'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 12132
    keywords = []
    message_count = 2.0
    messages = ['136428', '136565']
    nosy_count = 5.0
    nosy_names = ['nadeem.vawda', 'tarek', 'eric.araujo', 'alexis', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'closed'
    superseder = '12141'
    type = 'behavior'
    url = 'https://bugs.python.org/issue12132'
    versions = ['Python 3.3']

    @nadeemvawda
    Copy link
    Mannequin Author

    nadeemvawda mannequin commented May 21, 2011

    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).

    @nadeemvawda nadeemvawda mannequin added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels May 21, 2011
    @tarekziade tarekziade mannequin closed this as completed May 21, 2011
    @tarekziade tarekziade mannequin reopened this May 22, 2011
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented May 22, 2011

    New changeset 1ba12ac770e0 by Tarek Ziade in branch 'default':
    bpo-12132 - skip the test_buil_ext test if the xx module is not found
    http://hg.python.org/cpython/rev/1ba12ac770e0

    @tarekziade tarekziade mannequin closed this as completed May 22, 2011
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants