make unittest fails in python2.7
GoogleCodeExporter opened this issue · 3 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1." make unittest" fails.
$ LANG=C make test
/usr/bin/python -m unittest discover tests
FE
======================================================================
ERROR: test_many_backtracking (test_parsing.ParsingTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/kohei/devel/debpkg/funcparserlib/funcparserlib-0.3.5+hg~153/tests/test_parsing.py", line 15, in test_many_backtracking
self.assertEqual(expr.parse(u'xyxyxx'),
File "/usr/lib/python2.7/dist-packages/funcparserlib/parser.py", line 124, in parse
raise NoParseError(u'%s: %s' % (e.msg, tok))
NoParseError: no tokens left in the stream: <EOF>
======================================================================
FAIL: test_error_info (test_parsing.ParsingTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/kohei/devel/debpkg/funcparserlib/funcparserlib-0.3.5+hg~153/tests/test_parsing.py", line 30, in test_error_info
u'cannot tokenize data: 1,6: "f is \u0444"')
AssertionError: u'cannot tokenize data: 1,5: "f is \u0444"' != u'cannot
tokenize data: 1,6: "f is \u0444"'
- cannot tokenize data: 1,5: "f is \u0444"
? ^
+ cannot tokenize data: 1,6: "f is \u0444"
? ^
----------------------------------------------------------------------
Ran 2 tests in 0.002s
FAILED (failures=1, errors=1)
make: *** [unittest] Error 1
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
funcparserlib branch 0.3.x revision 153
Debian GNU/Linux Sid
Python 2.7.2+
Please provide any additional information below.
make examples are successful.
$ LANG=C make examples
/usr/bin/python -m unittest discover examples
......................
----------------------------------------------------------------------
Ran 22 tests in 0.026s
OK
Original issue reported on code.google.com by mkou...@gmail.com
on 5 Dec 2011 at 3:15
GoogleCodeExporter commented
Original comment by andrey.vlasovskikh
on 15 Dec 2011 at 7:14
- Changed state: Accepted
- Added labels: Milestone-0.3.6
GoogleCodeExporter commented
Original comment by andrey.vlasovskikh
on 15 Dec 2011 at 7:14
GoogleCodeExporter commented
Please try the latest version from the 0.3.x Mercurial branch from the
repository.
Original comment by andrey.vlasovskikh
on 24 Apr 2013 at 2:10
- Changed state: Fixed