classification
Title: test_unicode_file fails: shutil.copy2 says "same file"
Type: behavior Stage: test needed
Components: Versions: Python 3.3, Python 3.2
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: flox, haypo, python-dev
Priority: normal Keywords: buildbot

Created on 2011-11-05 10:58 by flox, last changed 2011-11-07 18:49 by python-dev.

Messages (2)
msg147079 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-11-05 10:58
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
msg147246 - (view) Author: Roundup Robot (python-dev) Date: 2011-11-07 18:49
New changeset fcff91a7b397 by Florent Xicluna in branch 'default':
More assertions in test_unicode_file, to chase issue #13348.
http://hg.python.org/cpython/rev/fcff91a7b397
History
Date User Action Args
2011-11-07 18:49:31python-devsetnosy: + python-dev
messages: + msg147246
2011-11-05 12:35:02hayposetnosy: + haypo
2011-11-05 10:58:02floxcreate