Test failures with Python 3

Issue #27 new
Arfrever Frehtes Taifersar Arahesis
created an issue

4 tests fail with Python 3 (3.1, 3.2, 3.3, 3.4) when test suite is run in the following way (example for Python 3.4):

$ rm -fr build
$ python3.4 setup.py build
...
$ nosetests-3.4 -P -w build/lib
............................................................................................................................................F........F.........F......F..............................
======================================================================
FAIL: test_unicode (fudge.tests.test_inspector.TestContains)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/fudge/build/lib/fudge/tests/test_inspector.py", line 229, in test_unicode
    assert repr(c).endswith("'Ivan_Krsti\\u0107')")
AssertionError

======================================================================
FAIL: test_objectlike_unicode (fudge.tests.test_inspector.TestObjectlike)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/fudge/build/lib/fudge/tests/test_inspector.py", line 112, in test_objectlike_unicode
    assert repr(o).endswith("'Ivan_Krsti\\u0107', one=1)")
AssertionError

======================================================================
FAIL: test_endswith_unicode (fudge.tests.test_inspector.TestStringlike)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/fudge/build/lib/fudge/tests/test_inspector.py", line 154, in test_endswith_unicode
    assert repr(p).endswith("'Ivan_Krsti\\u0107')")
AssertionError

======================================================================
FAIL: test_startswith_unicode (fudge.tests.test_inspector.TestStringlike)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/fudge/build/lib/fudge/tests/test_inspector.py", line 141, in test_startswith_unicode
    assert repr(p).endswith("'Ivan_Krsti\\u0107')")
AssertionError

----------------------------------------------------------------------
Ran 197 tests in 0.598s

FAILED (failures=4)

Comments (2)

  1. Kumar McMillan repo owner

    Hi, thanks for the report. I don't use fudge anymore because Mock has surpassed it in features, stability, and Python support. I'd be happy to merge in any patches but it would probably be easier if we switch everything to a github project. If anyone has time to do that I'd greatly appreciate it.

  2. Log in to comment