Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1021 (closed defect: duplicate)

Opened 13 years ago

Last modified 9 years ago

nosetests displays confusing error if there are problems with model

Reported by: nerkles Owned by: anonymous
Priority: normal Milestone: 1.0
Component: Tests Version: 0.9a6
Severity: major Keywords: nosetests


It appears that if there is any error with the model, nosetests will attempt to reload the model, causing errors like:

ValueError?: class VisitIdentity? is already in the registry (other class is <class 'myproject.model.VisitIdentity?'>, from the module myproject.model in /Users/Shared?/myproject/myproject/model.pyc; attempted new class is <class 'myproject.model.VisitIdentity?'>, from the module myproject.model in /Users/Shared?/myproject/myproject/model.pyc)

When really the error is a typo (or other mistake in the model):

NameError?: name 'MulitpleJoin?' is not defined

(you can see the real error if you try to do tg-admin sql create)

Change History

comment:1 Changed 13 years ago by nyenyec

I've seen this happen. What's the workaround, how do you find out what the real problem is. Is there an simpler way than using a debugger?

comment:2 Changed 13 years ago by jorge.vargas

  • Component changed from TurboGears to tests
  • Milestone changed from 1.0b1 to 1.0b2

comment:3 Changed 12 years ago by alberto

  • Milestone changed from 1.0b2 to 1.1

comment:4 Changed 12 years ago by alberto

  • Milestone changed from 1.1 to __unclassified__

Batch moved into unclassified from 1.1 to properly track progress on the later

comment:5 Changed 11 years ago by Chris Arndt

  • Status changed from new to closed
  • Resolution set to duplicate

This is a duplicate to ticket #1069.

comment:6 Changed 9 years ago by chrisz

  • Milestone changed from __unclassified__ to 1.0
Note: See TracTickets for help on using tickets.