On Wed, Feb 18, 2009 at 5:06 PM, Dean Landolt <[email protected]> wrote:

> I *finally *started writing more tests, so now I'm actually running
> them...
>
> From a fresh tg2b5 install the tests run fine, but I just noticed that when
> I run --with-doctest I get a weird paste failure (that I don't even care
> about). Otherwise, my doctests are evaluated just fine. I'm sure I can find
> a switch to flip to get nose to ignore this little problem, but is this an
> issue other people have seen?
>
>
> Stacktrace:
>
> Traceback (most recent call last):
>   File "c:\documents and settings\u\projects\env\lib\site-packages\nose-0
> .10.4-py2.5.egg\nose\loader.py", line 364, in loadTestsFromName
>     addr.filename, addr.module)
>   File "c:\documents and settings\u\projects\env\lib\site-packages\nose-0
> .10.4-py2.5.egg\nose\importer.py", line 39, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "c:\documents and settings\u\projects\env\lib\site-packages\nose-0
> .10.4-py2.5.egg\nose\importer.py", line 84, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "C:\Documents and Settings\u\Projects\TestProj\core\controllers\
> root.py", line 367, in <module>
>     class RootController(BaseController):
>   File "C:\Documents and Settings\u\Projects\TestProj\core\controllers\
> root.py", line 396, in RootController
>     def login(self, came_from=url('/')):
>   File "c:\documents and settings\u\projects\env\lib\site-packages\turbog
> ears2-2.0b5.1-py2.5.egg\tg\controllers.py", line 756, in url
>     return pylons_url(*args, **kwargs)
>   File "c:\documents and settings\u\projects\env\lib\site-packages\paste-
> 1.7.2-py2.5.egg\paste\registry.py", line 155, in __call__
>     return self._current_obj()(*args, **kw)
>   File "c:\documents and settings\u\projects\env\lib\site-packages\paste-
> 1.7.2-py2.5.egg\paste\registry.py", line 194, in _current_obj
>     'thread' % self.____name__)
> TypeError: No object (name: url) has been registered for this thread


Just an update -- the issue goes away if I remove identity -- it has
something to do with the way tg.url is used in the identity part of the
default quickstarted root controller.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to