Hi All,

I am just getting started with trac development and followed the 
instructions on setting up my development environment.

However, I've encountered the following error when running the unit tests:

(trac) garyl@garyl-VirtualBox:~/projects/trac/code$ make unit-test
 It looks like you don't have a Makefile.cfg file yet.
 You can get started by doing `cp Makefile.cfg.sample Makefile.cfg'
 and then adapt it to your environment.

Python: /home/garyl/projects/trac/bin/python 

  Package        Version
  -------------------------------------------------------
  Python       : 2.7.12 (default, Nov 19 2016, 06:48:10) 
               : [GCC 5.4.0 20160609]
  Setuptools   : 34.4.1
  Jinja2       : 2.9.6
  Genshi       : not installed
  Babel        : not installed
  sqlite3      : 2.6.0 (3.11.0)
  PySqlite     : not installed
  MySQLdb      : not installed
  Psycopg2     : not installed
  SVN bindings : not installed
  Mercurial    : not installed
  Pygments     : not installed
  Textile      : not installed
  Pytz         : not installed
  Docutils     : not installed
  Twill        : not installed
  LXML         : not installed
  coverage     : not installed
  figleaf      : not installed

Variables:
  
PATH=/home/garyl/projects/trac/bin:/home/garyl/bin:/home/garyl/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  PYTHONPATH=.
  TRAC_TEST_DB_URI=
  server-options= -p 8000  -r -e 

External dependencies:
  Git version: git version 2.7.4
  Subversion version: not installed

python  setup.py egg_info
running egg_info
writing requirements to Trac.egg-info/requires.txt
writing Trac.egg-info/PKG-INFO
writing top-level names to Trac.egg-info/top_level.txt
writing dependency_links to Trac.egg-info/dependency_links.txt
writing entry points to Trac.egg-info/entry_points.txt
reading manifest file 'Trac.egg-info/SOURCES.txt'
writing manifest file 'Trac.egg-info/SOURCES.txt'
python  ./trac/test.py --skip-functional-tests 

Traceback (most recent call last):
  File "/home/garyl/projects/trac/code/trac/mimeview/tests/pygments.py", 
line 30, in <module>
    import pygments
ImportError: No module named pygments
SKIP: mimeview/tests/pygments (no pygments installed)
SKIP: utils/tests/datefmt.py (no pytz installed)
SKIP: utils/tests/datefmt.py (no babel installed)
SKIP: tracopt/versioncontrol/svn/tests/svn_fs.py (no svn bindings)
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_input_type_password 
(trac.util.tests.html.TracHTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/garyl/projects/trac/code/trac/util/tests/html.py", line 104, 
in test_input_type_password
    self.assertEqual('', self.sanitize(html))
  File "/home/garyl/projects/trac/code/trac/util/tests/html.py", line 100, 
in sanitize
    return unicode(TracHTMLSanitizer().sanitize(html))
  File "/home/garyl/projects/trac/code/trac/util/html.py", line 639, in 
sanitize
    transform.feed(html)
  File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed
    self.goahead(0)
  File "/usr/lib/python2.7/HTMLParser.py", line 161, in goahead
    k = self.parse_starttag(i)
  File "/usr/lib/python2.7/HTMLParser.py", line 325, in parse_starttag
    self.handle_startendtag(tag, attrs)
  File "/home/garyl/projects/trac/code/trac/util/html.py", line 980, in 
handle_startendtag
    self._handle_start(tag, attrs, '/')
  File "/home/garyl/projects/trac/code/trac/util/html.py", line 962, in 
_handle_start
    if not self.sanitizer.is_safe_elem(tag, attrs):
  File "/home/garyl/projects/trac/code/trac/util/html.py", line 710, in 
is_safe_elem
    if isinstance(attrs, Attrs):
TypeError: isinstance() arg 2 must be a class, type, or tuple of classes 
and types

----------------------------------------------------------------------
Ran 2112 tests in 49.400s

FAILED (errors=1)
Makefile:396: recipe for target 'unit-test' failed
make: *** [unit-test] Error 1

Is this a known issue or am I missing something?  Thanks in advance.

Gary L.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to