Opened 10 years ago
Closed 8 years ago
#11642 closed enhancement (fixed)
Test failures with Twill 1.8.0
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 0.12.8 |
Component: | general | Version: | |
Severity: | normal | Keywords: | twill functional tests |
Cc: | Branch: | ||
Release Notes: |
Enforce Twill required version of 0.9 or 0.9.1. |
||
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.
Attachments (0)
Change History (3)
comment:1 by , 8 years ago
Milestone: | undecided → 1.2 |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:2 by , 8 years ago
Yes, I think we should not invest more time on Twill, I doubt 1.8 or later version will add JavaScript support for example.
I did some experiments with Selenium, and I was very favorably impressed, I think it will be possible at some point to simply switch our functional tests over to use selenium. Of course, it'll be quite some work (#11988), but I rather see the effort spent there rather than on supporting a newer Twill version.
comment:3 by , 8 years ago
Milestone: | 1.2 → 0.12.8 |
---|---|
Release Notes: | modified (diff) |
Resolution: | → fixed |
Status: | assigned → closed |
We could just require version 0.9 and focus on #11988. I found that
twill.__version__
is0.9
even when 0.9.1 is installed.trac/tests/functional/__init__.py