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_distutils and test_packaging failures under Solaris
Type: behavior Stage: resolved
Components: Distutils2 Versions: Python 3.2, Python 3.3, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: alexis, eric.araujo, jcea, neologix, pitrou, python-dev, vstinner
Priority: high Keywords:

Created on 2011-06-14 14:26 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (14)
msg138315 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-06-14 14:26
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'
msg138320 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-06-14 14:59
I’m going to change directory before removing the temp dir.
msg138493 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-06-17 10:20
New changeset 276530424350 by Victor Stinner in branch 'default':
Issue #12333: restore the previous dir before removing the current directory
http://hg.python.org/cpython/rev/276530424350
msg138496 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2011-06-17 10:45
276530424350 fixed the failures on "x86 OpenIndiana 3.x" buildbot.
msg138499 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-06-17 11:54
New changeset 6e5a9f16d831 by Victor Stinner in branch 'default':
Issue #12333: close files before removing the directory
http://hg.python.org/cpython/rev/6e5a9f16d831

New changeset 144cea8db9a5 by Victor Stinner in branch 'default':
Issue #12333: run tests on the new module in a subprocess
http://hg.python.org/cpython/rev/144cea8db9a5
msg138529 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-06-17 17:36
Thanks for tackling this while I was offline.
msg142886 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2011-08-24 16:50
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'
"""
msg142976 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-08-25 16:19
This is strange; TempdirManager.tearDown already changes back to self._olddir (set to os.getcwd() in setUp).
msg142979 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-08-25 16:35
New changeset c0ec01c95a73 by Antoine Pitrou in branch '3.2':
Issue #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 #12333: fix test_distutils failures under Solaris and derivatives
http://hg.python.org/cpython/rev/80f814dca274
msg142980 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-08-25 17:05
Thanks for applying the same fix to test_distutils!
msg143480 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-09-04 06:41
New changeset 137e45f15c0b by Antoine Pitrou in branch '3.2':
Issue #12333: fix test_distutils failures under Solaris and derivatives
http://hg.python.org/cpython/rev/137e45f15c0b
msg143763 - (view) Author: Jesús Cea Avión (jcea) * (Python committer) Date: 2011-09-09 16:18
I am seen the same problem in 2.7 buildbots. Eric, could you apply this patch to 2.7 branch too?.

Thanks!.
msg143766 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-09-09 16:51
New changeset a74483c12740 by Jesus Cea in branch '2.7':
Issue #12333: fix test_distutils failures under Solaris and derivatives. Patch by Antoine Pitrou
http://hg.python.org/cpython/rev/a74483c12740
msg143768 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-09-09 16:56
I got your message but you committed before I could do it :)  Thanks!
History
Date User Action Args
2022-04-11 14:57:18adminsetgithub: 56542
2011-09-09 16:56:17eric.araujosetmessages: + msg143768
2011-09-09 16:51:25python-devsetmessages: + msg143766
2011-09-09 16:18:45jceasetnosy: + jcea

messages: + msg143763
versions: + Python 2.7
2011-09-04 06:41:56python-devsetmessages: + msg143480
2011-08-25 17:05:56eric.araujosetmessages: + msg142980
title: test_packaging failures under Solaris -> test_distutils and test_packaging failures under Solaris
2011-08-25 17:05:17pitrousetstatus: open -> closed
stage: needs patch -> resolved
resolution: fixed
versions: + Python 3.2
2011-08-25 16:35:46python-devsetmessages: + msg142979
2011-08-25 16:19:02eric.araujosetmessages: + msg142976
2011-08-24 16:50:49neologixsetstatus: closed -> open

nosy: + neologix
messages: + msg142886

resolution: fixed -> (no value)
2011-06-17 17:36:18eric.araujosetmessages: + msg138529
2011-06-17 11:54:29python-devsetmessages: + msg138499
2011-06-17 10:45:30vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg138496

resolution: fixed
2011-06-17 10:20:51python-devsetnosy: + python-dev
messages: + msg138493
2011-06-14 14:59:34eric.araujosetmessages: + msg138320
2011-06-14 14:26:46pitroucreate