Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 1, 2012, 4:41 AM

Post #1 of 9 (211 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X

Changes by Hynek Schlawack <hs [at] ox>:


----------
assignee: -> hynek
title: shutil.move broken in 2.7.3 on OSX (chflags fails) -> shutil.move doesn't handle ENOTSUP raised by chflags on OS X

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 2, 2012, 6:30 AM

Post #2 of 9 (207 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

The test fails here (Linux), since there's no os.chflags:

======================================================================
ERROR: test_copystat_handles_harmless_chflags_errors (test.test_shutil.TestShutil)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/antoine/cpython/default/Lib/test/test_shutil.py", line 302, in test_copystat_handles_harmless_chflags_errors
old_chflags = os.chflags
AttributeError: 'module' object has no attribute 'chflags'

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 2, 2012, 8:27 AM

Post #3 of 9 (204 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X [In reply to]

Hynek Schlawack <hs [at] ox> added the comment:

Fixed for 2.7

----------
Added file: http://bugs.python.org/file25434/expand-chflags-catch-2.7-v2.diff

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 2, 2012, 8:36 AM

Post #4 of 9 (202 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X [In reply to]

Hynek Schlawack <hs [at] ox> added the comment:

Fixed for 3.2.

----------
Added file: http://bugs.python.org/file25435/expand-chflags-catch-3.2-v2.diff

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 2, 2012, 8:47 AM

Post #5 of 9 (204 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X [In reply to]

Hynek Schlawack <hs [at] ox> added the comment:

And finally tip.

----------
Added file: http://bugs.python.org/file25436/expand-chflags-catch-tip-v2.diff

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 4, 2012, 10:29 AM

Post #6 of 9 (204 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

Looks ok to me, but I don't have a system with os.chflags to test on.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 4, 2012, 1:17 PM

Post #7 of 9 (201 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X [In reply to]

Ned Deily <nad [at] acm> added the comment:

I will test and check it in next week if still open.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 10, 2012, 6:14 PM

Post #8 of 9 (200 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X [In reply to]

Roundup Robot <devnull [at] psf> added the comment:

New changeset e12efebc3ba6 by Ned Deily in branch '2.7':
Issue #14662: Prevent shutil failures on OS X when destination does not
http://hg.python.org/cpython/rev/e12efebc3ba6

New changeset ae141eebcf96 by Ned Deily in branch '3.2':
Issue #14662: Prevent shutil failures on OS X when destination does not
http://hg.python.org/cpython/rev/ae141eebcf96

New changeset 93599d5e0a23 by Ned Deily in branch 'default':
Issue #14662: Prevent shutil failures on OS X when destination does not
http://hg.python.org/cpython/rev/93599d5e0a23

----------
nosy: +python-dev

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 10, 2012, 6:20 PM

Post #9 of 9 (194 views)
Permalink
[issue14662] shutil.move doesn't handle ENOTSUP raised by chflags on OS X [In reply to]

Ned Deily <nad [at] acm> added the comment:

Thanks for the patch! Tested with an NFS-mounted file system on OS X. Applied for 2.7.4, 3.2.4, and 3.3.0.

----------
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14662>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.