Opened 8 years ago
Last modified 8 years ago
#12456 closed defect
AssertionError: "<MODULE.eh_ix object at 0xADDRESS (repr() error: TypeError: unsupported operand type(s) for +: 'int' and 'str')>" — at Initial Version
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.11 |
Component: | general | Version: | |
Severity: | normal | Keywords: | tests |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Unit test fails when running tests for just the module, but passes when running the entire suite (make unit-test
).
$make test=trac/util/tests/__init__ Python: /Users/rjollos/Documents/Workspace/trac-dev/pve/bin/python Package Version ---------------------------------------------------------------------------------------------------------------- Python : 2.7.11 (default, Dec 5 2015, 14:44:53) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] Setuptools : 20.6.7 Genshi : 0.6.1 Babel : 2.3.2 sqlite3 : 2.6.0 (3.12.1) PySqlite : 2.8.1 (3.8.10.2) MySQLdb : 1.2.5 Psycopg2 : 2.6.1 (dt dec pq3 ext lo64) SVN bindings : 1.9.3 (r1718519) Mercurial : 3.7.2 Pygments : 2.1.3 Textile : 2.2.2 Pytz : 2016.3 Docutils : 0.12 Twill : 0.9 LXML : 3.5.0 coverage : 4.0.3 figleaf : 0.6.1 Variables: PATH=::$PATH PYTHONPATH=.::$PYTHONPATH TRAC_TEST_DB_URI= server-options= -p 8000 -a '*,/Users/rjollos/Documents/Workspace/trac-dev/tracenvs/htdigest.trac,trac' -r -e /Users/rjollos/Documents/Workspace/trac-dev/tracenvs External dependencies: -n Git version: git version 2.8.1 python setup.py -q test -s trac.util.tests.__init__.suite ...........F......................................................................................................................................................................................................................................... ====================================================================== FAIL: test_buggy_repr (trac.util.tests.__init__.SafeReprTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/util/tests/__init__.py", line 182, in test_buggy_repr "type(s) for +: 'int' and 'str')>", sr) AssertionError: "<MODULE.eh_ix object at 0xADDRESS (repr() error: TypeError: unsupported operand type(s) for +: 'int' and 'str')>" != u"<MODULE.__init__.eh_ix object at 0xADDRESS (repr() error: TypeError: unsupported operand type(s) for +: 'int' and 'str')>" ---------------------------------------------------------------------- Ran 245 tests in 1.040s FAILED (failures=1) make: *** [all] Error 1
Note:
See TracTickets
for help on using tickets.