I'm using the "nosetests" command - I actually was not aware of the "python setup.py test" command. There's no particular reason that I'm using TG1.0.7 - the app was working fine for me, so I just never got around to upgrading. I'll make sure to try doing that. I'm running nose version 0.11.0, which is the latest, I believe.
On Oct 31, 10:34 am, Christopher Arndt <[email protected]> wrote: > Min schrieb: > > > I've got some controller unit tests that use testutil for a TG1.0.7 > > project. I'm on Windows XP, Python 2.5.4. When I wrote them, they used > > to work when I used nosetests to run them, but now I'm getting an > > ImportError when trying to import turbogears. Specifically, it points > > to: > > > \turbogears-1.0.7-py2.5.egg\turbogears\__init__.py line 5, > > from turbogears import config. > > > An ImportError is raised, with the message, "cannot import name > > config." > > This error occurs usually when you have circular imports somewhere, but > it's strange then, that your import works normally outside of running > the tests. > > How do you run your tests? With "python setup.py test" or "nosetests [-vx]"? > > Also, is there a special reason why you still run TG 1.0.7 and not > 1.0.9? Can you try if the latter works for you? > > Lastly, which nose version are you running? Have you tried different > versions? > > Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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?hl=en -~----------~----~----~----~------~----~------~--~---

