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_unicode_file fails: shutil.copy2 says "same file"
Type: behavior Stage: resolved
Components: Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: flox, iritkatriel, python-dev, vstinner
Priority: normal Keywords: buildbot

Created on 2011-11-05 10:58 by flox, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
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) (Python triager) 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
msg379151 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2020-10-20 18:32
May we assume that a unit test failure from 9 years ago is no longer relevant?
History
Date User Action Args
2022-04-11 14:57:23adminsetgithub: 57557
2020-10-22 21:35:32iritkatrielsetstatus: open -> closed
resolution: out of date
stage: test needed -> resolved
2020-10-20 18:32:02iritkatrielsetstatus: pending -> open
nosy: + iritkatriel
messages: + msg379151

2015-10-06 17:04:22serhiy.storchakasetstatus: open -> pending
2011-11-07 18:49:31python-devsetnosy: + python-dev
messages: + msg147246
2011-11-05 12:35:02vstinnersetnosy: + vstinner
2011-11-05 10:58:02floxcreate