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_distutils and test_packaging failures under Solaris #56542

Closed
pitrou opened this issue Jun 14, 2011 · 14 comments
Closed

test_distutils and test_packaging failures under Solaris #56542

pitrou opened this issue Jun 14, 2011 · 14 comments
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@pitrou
Copy link
Member

pitrou commented Jun 14, 2011

BPO 12333
Nosy @jcea, @pitrou, @vstinner, @merwok

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/merwok'
closed_at = <Date 2011-08-25.17:05:17.040>
created_at = <Date 2011-06-14.14:26:46.849>
labels = ['type-bug']
title = 'test_distutils and test_packaging failures under Solaris'
updated_at = <Date 2011-09-09.16:56:17.238>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2011-09-09.16:56:17.238>
actor = 'eric.araujo'
assignee = 'eric.araujo'
closed = True
closed_date = <Date 2011-08-25.17:05:17.040>
closer = 'pitrou'
components = ['Distutils2']
creation = <Date 2011-06-14.14:26:46.849>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 12333
keywords = []
message_count = 14.0
messages = ['138315', '138320', '138493', '138496', '138499', '138529', '142886', '142976', '142979', '142980', '143480', '143763', '143766', '143768']
nosy_count = 7.0
nosy_names = ['jcea', 'pitrou', 'vstinner', 'eric.araujo', 'neologix', 'alexis', 'python-dev']
pr_nums = []
priority = 'high'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue12333'
versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

@pitrou
Copy link
Member Author

pitrou commented Jun 14, 2011

The problem is that tearDown() tries to rmdir() the current directory, which is forbidden under Solaris and returns EINVAL:

>>> os.getcwd()
'/home/antoine/t/t'
>>> os.rmdir("/home/antoine/t/t")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument: '/home/antoine/t/t'
>>> os.chdir('..')
>>> os.rmdir("/home/antoine/t/t")
>>> 

Extract of rmdir (2) manpage:

 EINVAL          The directory to be removed is  the  current
                 directory, or the final component of path is
                 ".".

See e.g. http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x:

======================================================================
ERROR: test_cfg_to_args (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpe5bnmg/tmp_41r35'

======================================================================
ERROR: test_change_root (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmptqqcy4/tmp8k_szg'

======================================================================
ERROR: test_convert_path (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpz76w6g/tmpehqobf'

======================================================================
ERROR: test_dont_write_bytecode (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpfou_50/tmp8m6foa'

======================================================================
ERROR: test_find_exe_version (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmp8qchh_/tmpask38f'

======================================================================
ERROR: test_find_packages (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpm0qhvv/tmp8t42l2'

======================================================================
ERROR: test_get_compiler_versions (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpou061r/tmph8fa0r'

======================================================================
ERROR: test_import_nested_first_time (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmp6iygts/tmpy8btph'

======================================================================
ERROR: test_newer (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpkyznct/tmpfj4aiy'

======================================================================
ERROR: test_resolve_name (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpz_s22i/tmp7am_yk'

======================================================================
ERROR: test_rfc822_escape (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpbo_555/tmpnavzar'

======================================================================
ERROR: test_run_2to3_on_code (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmphtln_2/tmpib4b_x'

======================================================================
ERROR: test_run_2to3_on_doctests (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpi1r8bp/tmp444dq2'

======================================================================
ERROR: test_server_empty_registration (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpqy_wif/tmp7tbq0t'
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/pypi/simple.py:86: ResourceWarning: unclosed <socket.socket object, fd=21, family=2, type=2, proto=6>
  return wrapped(self, *args, **kwargs)
Warning -- logging._handlerList was modified by test_packaging
test test_packaging failed -- multiple errors occurred

======================================================================
ERROR: test_server_registration (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpink626/tmpzqcvqs'

======================================================================
ERROR: test_spawn (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmpohv3t5/tmpjpol8_'

======================================================================
ERROR: test_split_quoted (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmp00p03n/tmpvxwrl5'

======================================================================
ERROR: test_strtobool (packaging.tests.test_util.UtilTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_util.py", line 147, in tearDown
    super(UtilTestCase, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 225, in tearDown
    super(EnvironRestorer, self).tearDown()
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/support.py", line 128, in tearDown
    shutil.rmtree(self._basetempdir, os.name in ('nt', 'cygwin'))
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 278, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 287, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/shutil.py", line 285, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmppwqypq/tmp8vywqv'

@pitrou pitrou added the type-bug An unexpected behavior, bug, or error label Jun 14, 2011
@merwok
Copy link
Member

merwok commented Jun 14, 2011

I’m going to change directory before removing the temp dir.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 17, 2011

New changeset 276530424350 by Victor Stinner in branch 'default':
Issue bpo-12333: restore the previous dir before removing the current directory
http://hg.python.org/cpython/rev/276530424350

@vstinner
Copy link
Member

276530424350 fixed the failures on "x86 OpenIndiana 3.x" buildbot.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 17, 2011

New changeset 6e5a9f16d831 by Victor Stinner in branch 'default':
Issue bpo-12333: close files before removing the directory
http://hg.python.org/cpython/rev/6e5a9f16d831

New changeset 144cea8db9a5 by Victor Stinner in branch 'default':
Issue bpo-12333: run tests on the new module in a subprocess
http://hg.python.org/cpython/rev/144cea8db9a5

@merwok
Copy link
Member

merwok commented Jun 17, 2011

Thanks for tackling this while I was offline.

@neologix
Copy link
Mannequin

neologix mannequin commented Aug 24, 2011

More occurrences:
http://www.python.org/dev/buildbot/all/builders/sparc solaris10 gcc 3.x/builds/3555/steps/test/logs/stdio

"""
======================================================================
ERROR: test_record_extensions (distutils.tests.test_install.InstallTestCase)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/distutils/tests/support.py", line 63, in tearDown
    shutil.rmtree(d, os.name in ('nt', 'cygwin'))
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/shutil.py", line 280, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/shutil.py", line 289, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/shutil.py", line 287, in rmtree
    os.rmdir(path)
OSError: [Errno 22] Invalid argument: '/tmp/tmp2horib/foo'
"""

@neologix neologix mannequin reopened this Aug 24, 2011
@merwok
Copy link
Member

merwok commented Aug 25, 2011

This is strange; TempdirManager.tearDown already changes back to self._olddir (set to os.getcwd() in setUp).

@python-dev
Copy link
Mannequin

python-dev mannequin commented Aug 25, 2011

New changeset c0ec01c95a73 by Antoine Pitrou in branch '3.2':
Issue bpo-12333: fix test_distutils failures under Solaris and derivatives
http://hg.python.org/cpython/rev/c0ec01c95a73

New changeset 80f814dca274 by Antoine Pitrou in branch 'default':
Issue bpo-12333: fix test_distutils failures under Solaris and derivatives
http://hg.python.org/cpython/rev/80f814dca274

@pitrou pitrou closed this as completed Aug 25, 2011
@merwok
Copy link
Member

merwok commented Aug 25, 2011

Thanks for applying the same fix to test_distutils!

@merwok merwok changed the title test_packaging failures under Solaris test_distutils and test_packaging failures under Solaris Aug 25, 2011
@python-dev
Copy link
Mannequin

python-dev mannequin commented Sep 4, 2011

New changeset 137e45f15c0b by Antoine Pitrou in branch '3.2':
Issue bpo-12333: fix test_distutils failures under Solaris and derivatives
http://hg.python.org/cpython/rev/137e45f15c0b

@jcea
Copy link
Member

jcea commented Sep 9, 2011

I am seen the same problem in 2.7 buildbots. Eric, could you apply this patch to 2.7 branch too?.

Thanks!.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Sep 9, 2011

New changeset a74483c12740 by Jesus Cea in branch '2.7':
Issue bpo-12333: fix test_distutils failures under Solaris and derivatives. Patch by Antoine Pitrou
http://hg.python.org/cpython/rev/a74483c12740

@merwok
Copy link
Member

merwok commented Sep 9, 2011

I got your message but you committed before I could do it :) Thanks!

@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
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants