Ticket #105 (closed defect: wontfix)
Opened 7 years ago
Last modified 6 months ago
[python] test_shutil fails
| Reported by: | scottmc | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Haiku Optional Packages |
| Component: | dev-lang/python | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Change History
comment:1 Changed 7 years ago by scottmc
- Owner scottmc deleted
comment:2 Changed 6 years ago by scottmc
- Milestone set to Haiku Alpha 1
comment:3 Changed 6 years ago by scottmc
- Milestone changed from Haiku Alpha 1 to Haiku Optional Packages
comment:4 Changed 5 years ago by scottmc
comment:5 Changed 5 years ago by augiedoggie
This is to be expected. os.link() creates a hard link which is unsupported on BFS. The only solution is to modify the test suite to skip this test on Haiku.
comment:6 Changed 6 months ago by scottmc
- Resolution set to wontfix
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

this still fails in python-2.6.5
/boot/common/lib/python2.6/test> python test_shutil.py test_copytree_simple (__main__.TestShutil) ... ok test_copytree_with_exclude (__main__.TestShutil) ... ok test_dont_copy_file_onto_link_to_itself (__main__.TestShutil) ... ERROR test_rmtree_dont_delete_file (__main__.TestShutil) ... ok test_rmtree_errors (__main__.TestShutil) ... ok test_rmtree_on_symlink (__main__.TestShutil) ... ok test_destinsrc_false_negative (__main__.TestMove) ... ok test_destinsrc_false_positive (__main__.TestMove) ... ok test_dont_move_dir_in_itself (__main__.TestMove) ... ok test_existing_file_inside_dest_dir (__main__.TestMove) ... ok test_move_dir (__main__.TestMove) ... ok test_move_dir_other_fs (__main__.TestMove) ... ok test_move_dir_to_dir (__main__.TestMove) ... ok test_move_dir_to_dir_other_fs (__main__.TestMove) ... ok test_move_file (__main__.TestMove) ... ok test_move_file_other_fs (__main__.TestMove) ... ok test_move_file_to_dir (__main__.TestMove) ... ok test_move_file_to_dir_other_fs (__main__.TestMove) ... ok ====================================================================== ERROR: test_dont_copy_file_onto_link_to_itself (__main__.TestShutil) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_shutil.py", line 202, in test_dont_copy_file_onto_link_to_itself os.link(src, dst) OSError: [Errno -2147454933] Operation not supported ---------------------------------------------------------------------- Ran 18 tests in 0.527s FAILED (errors=1) Traceback (most recent call last): File "test_shutil.py", line 374, in <module> test_main() File "test_shutil.py", line 371, in test_main test_support.run_unittest(TestShutil, TestMove) File "/boot/common/lib/python2.6/test/test_support.py", line 734, in run_unittest _run_suite(suite) File "/boot/common/lib/python2.6/test/test_support.py", line 717, in _run_suite raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "test_shutil.py", line 202, in test_dont_copy_file_onto_link_to_itself os.link(src, dst) OSError: [Errno -2147454933] Operation not supportedThis is probably due to something in Haiku.