[New-bugs-announce] [issue13348] test_unicode_file fails: shutil.copy2 says "same file"

Florent Xicluna report at bugs.python.org
Sat Nov 5 11:58:02 CET 2011


New submission from Florent Xicluna <florent.xicluna at gmail.com>:

I stopped on this error on buildbot x86 Tiger 3.2.
It looks strange.

test_single_files (test.test_unicode_file.TestUnicodeFiles) ... ERROR

======================================================================
ERROR: test_single_files (test.test_unicode_file.TestUnicodeFiles)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/db3l/buildarea/3.2.bolen-tiger/build/Lib/test/test_unicode_file.py", line 120, in test_single_files
    self._test_single(TESTFN_UNICODE)
  File "/Users/db3l/buildarea/3.2.bolen-tiger/build/Lib/test/test_unicode_file.py", line 113, in _test_single
    self._do_single(filename)
  File "/Users/db3l/buildarea/3.2.bolen-tiger/build/Lib/test/test_unicode_file.py", line 40, in _do_single
    self._do_copyish(filename, filename)
  File "/Users/db3l/buildarea/3.2.bolen-tiger/build/Lib/test/test_unicode_file.py", line 75, in _do_copyish
    shutil.copy2(filename1, filename2 + ".new")
  File "/Users/db3l/buildarea/3.2.bolen-tiger/build/Lib/shutil.py", line 144, in copy2
    copyfile(src, dst)
  File "/Users/db3l/buildarea/3.2.bolen-tiger/build/Lib/shutil.py", line 85, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
shutil.Error: `@test_19432_tmp-àòɘŁğ` and `@test_19432_tmp-àòɘŁğ.new` are the same file

----------------------------------------------------------------------
Ran 2 tests in 0.013s

FAILED (errors=1)


http://www.python.org/dev/buildbot/all/builders/x86%20Tiger%203.2/builds/637/steps/test/logs/stdio

----------
keywords: buildbot
messages: 147079
nosy: flox
priority: normal
severity: normal
stage: test needed
status: open
title: test_unicode_file fails: shutil.copy2 says "same file"
type: behavior
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13348>
_______________________________________


More information about the New-bugs-announce mailing list