Edgewall Software

Opened 10 years ago

Last modified 8 years ago

#11642 closed enhancement

Test failures with Twill 1.8.0 — at Initial Version

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: 0.12.8
Component: general Version:
Severity: normal Keywords: twill functional tests
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

As mentioned on the mailing list (gdiscussion:trac-dev:sCRapSYsEGQ). After installing the dependencies of Twill 1.8.0: requests lxml and cssselect (pull request #6 is needed to improve handling of the package dependencies), the first error encountered is:

$ python ./trac/tests/functional/__init__.py
Traceback (most recent call last):
  File "./trac/tests/functional/__init__.py", line 221, in <module>
    unittest.main(defaultTest='suite')
  File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
    self.runTests()
  File "/usr/lib/python2.7/unittest/main.py", line 232, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python2.7/unittest/runner.py", line 151, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/home/user/Workspace/newtwill/teo-rjollos.git/trac/test.py", line 137, in run
    self.setUp()
  File "./trac/tests/functional/__init__.py", line 151, in setUp
    self._testenv.start()
  File "/home/user/Workspace/newtwill/teo-rjollos.git/trac/tests/functional/testenv.py", line 271, in start
    tc.go(self.url)
  File "/home/user/Workspace/newtwill/py2.7/local/lib/python2.7/site-packages/twill-1.8.0-py2.7.egg/twill/commands.py", line 109, in go
    browser.go(url)
  File "/home/user/Workspace/newtwill/py2.7/local/lib/python2.7/site-packages/twill-1.8.0-py2.7.egg/twill/browser.py", line 91, in go
    raise TwillException("cannot go to '%s'" % (url,))
twill.errors.TwillException: cannot go to 'http://127.0.0.1:8170'

Package versions are:

>>> import twill
>>> twill.__version__
'0.9'
>>> twill.__path__
['/home/user/Workspace/newtwill/py2.7/local/lib/python2.7/site-packages/twill-1.8.0-py2.7.egg/twill']
>>> import requests
>>> requests.__version__
'2.3.0'
>>> import lxml
>>> lxml.etree.LXML_VERSION
(3, 3, 5, 0)
>>> import cssselect
>>> cssselect.__version__
'0.9.1'

The version is in the Twill package on PyPI is incorrect. The version has been fixed in the codebase.

Change History (0)

Note: See TracTickets for help on using tickets.