So I have a small patch, that I am testing.  The unit tests start up
the functional tests.  The functional tests require twill.  I
installed twill....  Reran the functional tests, and they appear to
die with a stack dump as follows:

This is in Centos 5, Python 2.4.3, trac 0.11.1

(trac)[r...@kermit trac-0.11.1]# PYTHONPATH=. trac/test.py
............................................................................Traceback
(most recent call last):
  File "trac/test.py", line 270, in ?
    unittest.main(defaultTest='suite')
  File "/usr/lib/python2.4/unittest.py", line 759, in __init__
    self.runTests()
  File "/usr/lib/python2.4/unittest.py", line 796, in runTests
    result = self.testRunner.run(self.test)
  File "/usr/lib/python2.4/unittest.py", line 696, in run
    test(result)
  File "/usr/lib/python2.4/unittest.py", line 428, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.4/unittest.py", line 424, in run
    test(result)
  File "/usr/lib/python2.4/unittest.py", line 428, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.4/unittest.py", line 424, in run
    test(result)
  File "/usr/lib/python2.4/unittest.py", line 428, in __call__
    return self.run(*args, **kwds)
  File "/opt/trac/trac-0.11.1/trac/test.py", line 121, in run
    self.setUp()
  File "/opt/trac/trac-0.11.1/trac/tests/functional/__init__.py", line
119, in setUp
    self._testenv.start()
  File "/opt/trac/trac-0.11.1/trac/tests/functional/testenv.py", line
119, in start
    tc.url(self.url)
  File "/usr/lib/python2.4/site-packages/twill-0.9-py2.4.egg/twill/
commands.py", line 175, in url
    raise TwillAssertionError("""\
twill.errors.TwillAssertionError: current url is 'http://XXX.XX.XXX.
199';
does not match 'http://localhost:8697'

Has anyone seen this before?  What I find interesting is that the
obfuscated URL IS a URL of this machine, but it's not listed in /etc/
hosts.  I am not sure I need to obfuscate the URL, but the machine is
on a mostly isolated private LAN, and I suspect my employer would be
happier with there be no network URL info leaked.  At any rate, the
machine itself doesn't know much about that URL, that's a URL that was
assigned in some NAT routers to this machine.

So I guess I have some questions about functional tests.

Should they be runnable in 0.11.3?
Can someone help me make the above error go away?

I am going to skip them for now with --skip-functional-tests, but I
would like to understand when they should be run.

Thank you,

Jerry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to