1. Olivier Lauzanne
  2. pyquery
  3. Issues
Issue #66 resolved

Doctest failures with Python 3.3

Arfrever Frehtes Taifersar Arahesis
created an issue

Some doctests sometimes fail with Python 3.3. You might need to run test suite multiple times to reproduce this bug. I use pyquery-1.2.2.

$ nosetests-3.3
...
======================================================================
FAIL: Doctest:
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.3/doctest.py", line 2154, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
  File "/tmp/pyquery-1.2.2/docs/css.txt", line 0

----------------------------------------------------------------------
File "/tmp/pyquery-1.2.2/docs/css.txt", line 11, in
Failed example:
    p.addClass("toto")
Expected:
    [<p#hello.toto.hello>]
Got:
    [<p#hello.hello.toto>]
----------------------------------------------------------------------
File "/tmp/pyquery-1.2.2/docs/css.txt", line 13, in
Failed example:
    p.toggleClass("titi toto")
Expected:
    [<p#hello.titi.hello>]
Got:
    [<p#hello.hello.titi>]


----------------------------------------------------------------------
Ran 84 tests in 2.205s

FAILED (failures=1)