The unittest succeed on Ubuntu but failed under Windows Xp.

Create issue
Issue #297 new
Yonggang Luo created an issue

{{{ #!bat

E:\CI\bld\hgsubversion\tests>nosetests .................................................F...................F.......... .........................F...................................................... ................................................................................ ................................................................................ ................................................................................ ................................................................................ .....FF...... ====================================================================== FAIL: test_many_special_cases_diff (test_fetch_command.TestBasicRepoLayout)


Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_command.py", line 72, in test_ma ny_special_cases_diff self._many_special_cases_checks(repo) File "E:\CI\bld\hgsubversion\tests\test_fetch_command.py", line 81, in _many_s pecial_cases_checks 'b7bdc73041b1852563deb1ef3f4153c2fe4484f2')) AssertionError: False is not true -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r4] durin: Make a branch [r5] durin: add delta on the branch [r6] durin: Add gamma on trunk. [r7] durin: Add a dir that is part of another file so I can delete it to test a [r8] durin: delete gam to test that previously-mentioned case. Not using patch for 8, diff had no hunks. [r9] durin: Add a symlink [r10] durin: redirect an existing symlink to a different file. [r11] durin: remove a symlink. [r12] durin: add an executable file. [r13] durin: remove execute from a file. Not using patch for 13, diff had no hunks. [r14] durin: add executable to a file Not using patch for 14, diff had no hunks. [r15] durin: Add epsilon as a copy of alpha. pulled 14 revisions

--------------------- >> end captured stdout << ----------------------

====================================================================== FAIL: test_exec_stupid (test_fetch_exec.TestFetchExec)


Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 24, in test_exec_ stupid self.test_exec(True) File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 20, in test_exec self.assertexec(repo[1], ['text1', 'binary1', 'empty1'], False) File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 14, in assertexec

self.assertEqual(isexec, 'x' in ctx[f].flags())

AssertionError: False != True -------------------- >> begin captured stdout << --------------------- [r1] pmezard: init project [r2] pmezard: init [r3] pmezard: changeexec Not using patch for 3, diff had no hunks. pulled 2 revisions

--------------------- >> end captured stdout << ----------------------

====================================================================== FAIL: test_symlinks_stupid (test_fetch_symlinks.TestFetchSymlinks)


Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_symlinks.py", line 53, in test_s ymlinks_stupid self.test_symlinks(True) File "E:\CI\bld\hgsubversion\tests\test_fetch_symlinks.py", line 46, in test_s ymlinks self.assertEqual(f in links[rev], 'l' in ctx[f].flags()) AssertionError: True != False -------------------- >> begin captured stdout << --------------------- [r1] pmezard: init project [r2] pmezard: add symlinks [r3] pmezard: moving symlinks [r4] pmezard: update symlinks [r5] pmezard: undo link [r6] danchr: recreate a link [r7] danchr: delete property from a link Not using patch for 7, diff had no hunks. [r8] danchr: add an uglily named file and a symlink to it pulled 7 revisions

--------------------- >> end captured stdout << ----------------------

====================================================================== FAIL: test_info_output (test_utility_commands.UtilityTests)


Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_utility_commands.py", line 46, in test _info_output self.assertMultiLineEqual(actual, expected) File "E:\CI\bld\hgsubversion\tests\test_util.py", line 455, in assertMultiLine Equal msg) AssertionError: 'URL: file:///C:/docume~1/dreamkxd/locals~1/temp/tmpozi5mtsvnwra p_test/testrepo/ [truncated]... != 'URL: file:///c:/docume~1/dreamkxd/locals~1/t emp/tmpozi5mtsvnwrap_test/testrepo/ [truncated]... Diff is 691 characters long. Set self.maxDiff to None to see it. -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r4] durin: Make a branch [r5] durin: add delta on the branch [r6] durin: Add gamma on trunk. pulled 5 revisions

--------------------- >> end captured stdout << ----------------------

====================================================================== FAIL: test_info_single (test_utility_commands.UtilityTests)


Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_utility_commands.py", line 83, in test _info_single self.assertMultiLineEqual(expected, actual) File "E:\CI\bld\hgsubversion\tests\test_util.py", line 455, in assertMultiLine Equal msg) AssertionError: 'URL: file:///c:/docume~1/dreamkxd/locals~1/temp/tmpfqe9d4svnwra p_test/testrepo/ [truncated]... != 'URL: file:///C:/docume~1/dreamkxd/locals~1/t emp/tmpfqe9d4svnwrap_test/testrepo/ [truncated]... Diff is 663 characters long. Set self.maxDiff to None to see it. -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r6] durin: Add gamma on trunk. pulled 3 revisions

--------------------- >> end captured stdout << ----------------------


Ran 493 tests in 673.308s

FAILED (failures=5)

E:\CI\bld\hgsubversion\tests> }}}

Comments (7)

  1. Yonggang Luo reporter

    Update failure E:\CI\bld\hgsubversion\tests>nosetests .................................................F...................F.......... .........................F...................................................... ................................................................................ ................................................................................ ................................................................................ ..........................................................................F..... .....FF......

    FAIL: test_many_special_cases_diff (test_fetch_command.TestBasicRepoLayout) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_command.py", line 72, in test_ma ny_special_cases_diff self._many_special_cases_checks(repo) File "E:\CI\bld\hgsubversion\tests\test_fetch_command.py", line 81, in _many_s pecial_cases_checks 'b7bdc73041b1852563deb1ef3f4153c2fe4484f2')) AssertionError: False is not true -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r4] durin: Make a branch [r5] durin: add delta on the branch [r6] durin: Add gamma on trunk. [r7] durin: Add a dir that is part of another file so I can delete it to test a [r8] durin: delete gam to test that previously-mentioned case. Not using patch for 8, diff had no hunks. [r9] durin: Add a symlink [r10] durin: redirect an existing symlink to a different file. [r11] durin: remove a symlink. [r12] durin: add an executable file. [r13] durin: remove execute from a file. Not using patch for 13, diff had no hunks. [r14] durin: add executable to a file Not using patch for 14, diff had no hunks. [r15] durin: Add epsilon as a copy of alpha. pulled 14 revisions

    --------------------- >> end captured stdout << ----------------------

    FAIL: test_exec_stupid (test_fetch_exec.TestFetchExec) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 24, in test_exec_ stupid self.test_exec(True) File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 20, in test_exec self.assertexec(repo[1], ['text1', 'binary1', 'empty1'], False) File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 14, in assertexec

    self.assertEqual(isexec, 'x' in ctx[f].flags()) AssertionError: False != True -------------------- >> begin captured stdout << --------------------- [r1] pmezard: init project [r2] pmezard: init [r3] pmezard: changeexec Not using patch for 3, diff had no hunks. pulled 2 revisions

    --------------------- >> end captured stdout << ----------------------

    FAIL: test_symlinks_stupid (test_fetch_symlinks.TestFetchSymlinks) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_symlinks.py", line 53, in test_s ymlinks_stupid self.test_symlinks(True) File "E:\CI\bld\hgsubversion\tests\test_fetch_symlinks.py", line 46, in test_s ymlinks self.assertEqual(f in links[rev], 'l' in ctx[f].flags()) AssertionError: True != False -------------------- >> begin captured stdout << --------------------- [r1] pmezard: init project [r2] pmezard: add symlinks [r3] pmezard: moving symlinks [r4] pmezard: update symlinks [r5] pmezard: undo link [r6] danchr: recreate a link [r7] danchr: delete property from a link Not using patch for 7, diff had no hunks. [r8] danchr: add an uglily named file and a symlink to it pulled 7 revisions

    --------------------- >> end captured stdout << ----------------------

    FAIL: Test 'clone --updaterev' ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_unaffected_core.py", line 46, in test_ update self.assertEqual(len(repo), 3) AssertionError: 2 != 3

    FAIL: test_info_output (test_utility_commands.UtilityTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_utility_commands.py", line 46, in test _info_output self.assertMultiLineEqual(actual, expected) File "E:\CI\bld\hgsubversion\tests\test_util.py", line 455, in assertMultiLine Equal msg) AssertionError: 'URL: file:/C:/docume1/dreamkxd/locals1/temp/tmpqxti6fsvnwra p_test/testrepo/ [truncated]... != 'URL: file:/c:/docume1/dreamkxd/locals1/t emp/tmpqxti6fsvnwrap_test/testrepo/ [truncated]... Diff is 691 characters long. Set self.maxDiff to None to see it. -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r4] durin: Make a branch [r5] durin: add delta on the branch [r6] durin: Add gamma on trunk. pulled 5 revisions

    --------------------- >> end captured stdout << ----------------------

    FAIL: test_info_single (test_utility_commands.UtilityTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_utility_commands.py", line 83, in test _info_single self.assertMultiLineEqual(expected, actual) File "E:\CI\bld\hgsubversion\tests\test_util.py", line 455, in assertMultiLine Equal msg) AssertionError: 'URL: file:/c:/docume1/dreamkxd/locals1/temp/tmpyzzle9svnwra p_test/testrepo/ [truncated]... != 'URL: file:/C:/docume1/dreamkxd/locals1/t emp/tmpyzzle9svnwrap_test/testrepo/ [truncated]... Diff is 663 characters long. Set self.maxDiff to None to see it. -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r6] durin: Add gamma on trunk. pulled 3 revisions

    --------------------- >> end captured stdout << ----------------------

    ---------------------------------------------------------------------- Ran 493 tests in 664.285s

    FAILED (failures=6)

    E:\CI\bld\hgsubversion\tests>

  2. Yonggang Luo reporter

    It's should be 5 Failure.

    E:\CI\bld\hgsubversion\tests>nosetests .................................................F...................F.......... .........................F...................................................... ................................................................................ ................................................................................ ................................................................................ ................................................................................ .....FF......

    FAIL: test_many_special_cases_diff (test_fetch_command.TestBasicRepoLayout) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_command.py", line 72, in test_ma ny_special_cases_diff self._many_special_cases_checks(repo) File "E:\CI\bld\hgsubversion\tests\test_fetch_command.py", line 81, in _many_s pecial_cases_checks 'b7bdc73041b1852563deb1ef3f4153c2fe4484f2')) AssertionError: False is not true -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r4] durin: Make a branch [r5] durin: add delta on the branch [r6] durin: Add gamma on trunk. [r7] durin: Add a dir that is part of another file so I can delete it to test a [r8] durin: delete gam to test that previously-mentioned case. Not using patch for 8, diff had no hunks. [r9] durin: Add a symlink [r10] durin: redirect an existing symlink to a different file. [r11] durin: remove a symlink. [r12] durin: add an executable file. [r13] durin: remove execute from a file. Not using patch for 13, diff had no hunks. [r14] durin: add executable to a file Not using patch for 14, diff had no hunks. [r15] durin: Add epsilon as a copy of alpha. pulled 14 revisions

    --------------------- >> end captured stdout << ----------------------

    FAIL: test_exec_stupid (test_fetch_exec.TestFetchExec) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 24, in test_exec_ stupid self.test_exec(True) File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 20, in test_exec self.assertexec(repo[1], ['text1', 'binary1', 'empty1'], False) File "E:\CI\bld\hgsubversion\tests\test_fetch_exec.py", line 14, in assertexec

    self.assertEqual(isexec, 'x' in ctx[f].flags()) AssertionError: False != True -------------------- >> begin captured stdout << --------------------- [r1] pmezard: init project [r2] pmezard: init [r3] pmezard: changeexec Not using patch for 3, diff had no hunks. pulled 2 revisions

    --------------------- >> end captured stdout << ----------------------

    FAIL: test_symlinks_stupid (test_fetch_symlinks.TestFetchSymlinks) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_fetch_symlinks.py", line 53, in test_s ymlinks_stupid self.test_symlinks(True) File "E:\CI\bld\hgsubversion\tests\test_fetch_symlinks.py", line 46, in test_s ymlinks self.assertEqual(f in links[rev], 'l' in ctx[f].flags()) AssertionError: True != False -------------------- >> begin captured stdout << --------------------- [r1] pmezard: init project [r2] pmezard: add symlinks [r3] pmezard: moving symlinks [r4] pmezard: update symlinks [r5] pmezard: undo link [r6] danchr: recreate a link [r7] danchr: delete property from a link Not using patch for 7, diff had no hunks. [r8] danchr: add an uglily named file and a symlink to it pulled 7 revisions

    --------------------- >> end captured stdout << ----------------------

    FAIL: test_info_output (test_utility_commands.UtilityTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_utility_commands.py", line 46, in test _info_output self.assertMultiLineEqual(actual, expected) File "E:\CI\bld\hgsubversion\tests\test_util.py", line 455, in assertMultiLine Equal msg) AssertionError: 'URL: file:/C:/docume1/dreamkxd/locals1/temp/tmpozi5mtsvnwra p_test/testrepo/ [truncated]... != 'URL: file:/c:/docume1/dreamkxd/locals1/t emp/tmpozi5mtsvnwrap_test/testrepo/ [truncated]... Diff is 691 characters long. Set self.maxDiff to None to see it. -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r4] durin: Make a branch [r5] durin: add delta on the branch [r6] durin: Add gamma on trunk. pulled 5 revisions

    --------------------- >> end captured stdout << ----------------------

    FAIL: test_info_single (test_utility_commands.UtilityTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\CI\bld\hgsubversion\tests\test_utility_commands.py", line 83, in test _info_single self.assertMultiLineEqual(expected, actual) File "E:\CI\bld\hgsubversion\tests\test_util.py", line 455, in assertMultiLine Equal msg) AssertionError: 'URL: file:/c:/docume1/dreamkxd/locals1/temp/tmpfqe9d4svnwra p_test/testrepo/ [truncated]... != 'URL: file:/C:/docume1/dreamkxd/locals1/t emp/tmpfqe9d4svnwrap_test/testrepo/ [truncated]... Diff is 663 characters long. Set self.maxDiff to None to see it. -------------------- >> begin captured stdout << --------------------- [r1] durin: Empty dirs. [r2] durin: Add alpha [r3] durin: Add beta [r6] durin: Add gamma on trunk. pulled 3 revisions

    --------------------- >> end captured stdout << ----------------------

    ---------------------------------------------------------------------- Ran 493 tests in 673.308s

    FAILED (failures=5)

    E:\CI\bld\hgsubversion\tests>

  3. Yonggang Luo reporter

    Augie, please assign this to me, it's resolved in my own hgsubversion fork, waiting for merge.

  4. Log in to comment