Tests can fail if not running under English localization

Create issue
Issue #116 resolved
Augie Fackler repo owner created an issue

Comments (2)

  1. Augie Fackler reporter

    Can reproduce with LANG=de python tests/run.py, but just fixing LANG to be C in setup/teardown for tests isn't enough.

    Copying paste content here, since lisppaste expires content now:

    ======================================================================
    FAIL: test_outgoing_output (tests.test_utility_commands.UtilityTests)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/alex/opt/hgsubversion/tests/test_utility_commands.py", line 138, in test_outgoing_out
    put
        self.assertEqual(actual[0], 'comparing with ' + self.repourl)
    AssertionError: 'Vergleiche mit file:///tmp/tmpbJAgkYsvnwrap_test/testrepo' != 'comparing with file
    :///tmp/tmpbJAgkYsvnwrap_test/testrepo'
    -------------------- >> 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 6 revisions
    5 Dateien aktualisiert, 0 Dateien zusammengeführt, 0 Dateien entfernt, 0 Dateien ungelöst
    Vergleiche mit file:///tmp/tmpbJAgkYsvnwrap_test/testrepo
    Änderung:        5:6de15430fa20
    Zweig    :       localbranch
    Marke:           tip
    Vorgänger:       3:4e256962fc5d
    Nutzer:          testy
    Datum:           Sun Dec 21 16:32:00 2008 -0500
    Zusammenfassung: automated test
    
    
    --------------------- >> end captured stdout << ----------------------
    
    ======================================================================
    FAIL: test_parent_output (tests.test_utility_commands.UtilityTests)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/alex/opt/hgsubversion/tests/test_utility_commands.py", line 82, in test_parent_output
        'changeset:   3:4e256962fc5d\n'
    AssertionError: '\xc3\x84nderung:        3:4e256962fc5d\nZweig    :       the_branch\nNutzer:          durin@df2126f7-00ab-4d49-b42c-7e981dde0bcf\nDatum:           Wed Oct 08 01:39:05 2008 +0000\nZusammenfassung: add delta on the branch\n\n' != 'changeset:   3:4e256962fc5d\nbranch:      the_branch\nuser:        durin@df2126f7-00ab-4d49-b42c-7e981dde0bcf\ndate:        Wed Oct 08 01:39:05 2008 +0000\nsummary:     add delta on the branch\n\n'
    -------------------- >> 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 6 revisions
    5 Dateien aktualisiert, 0 Dateien zusammengeführt, 0 Dateien entfernt, 0 Dateien ungelöst
    
    --------------------- >> end captured stdout << ----------------------
    
  2. Log in to comment