[Python-Dev] test_shutils.py fails for 2.4 install

Edward C. Jones edcjones at erols.com
Fri Dec 3 03:24:45 CET 2004


I have a PC with an AMD cpu and Mandrake 10.1. While installing Python 
2.4 "make test" failed in "test_shutils.py". Here is the output of 
"./python ./Lib/test/test_shutil.py":

test_dont_copy_file_onto_link_to_itself (__main__.TestShutil) ... ok
test_dont_move_dir_in_itself (__main__.TestShutil) ... ok
test_on_error (__main__.TestShutil) ... FAIL
test_rmtree_dont_delete_file (__main__.TestShutil) ... ok
test_rmtree_errors (__main__.TestShutil) ... ok

======================================================================
FAIL: test_on_error (__main__.TestShutil)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./Lib/test/test_shutil.py", line 34, in test_on_error
    self.assertEqual(self.errorState, 2)
AssertionError: 0 != 2

----------------------------------------------------------------------
Ran 5 tests in 0.005s

FAILED (failures=1)
Traceback (most recent call last):
  File "./Lib/test/test_shutil.py", line 106, in ?
    test_main()
  File "./Lib/test/test_shutil.py", line 103, in test_main
    test_support.run_unittest(TestShutil)
  File "/usr/local/src/Python-2.4/Lib/test/test_support.py", line 290, 
in run_u
    run_suite(suite, testclass)
  File "/usr/local/src/Python-2.4/Lib/test/test_support.py", line 275, 
in run_s
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "./Lib/test/test_shutil.py", line 34, in test_on_error
    self.assertEqual(self.errorState, 2)
AssertionError: 0 != 2



More information about the Python-Dev mailing list