On Friday, 11 November 2016 22:39:35 UTC+1, RjOllos wrote:
>
>
> It should work after [15952]
>
> https://trac-hacks.org/changeset/15952
>

Certainly the tests are now found correctly. Thanks.
 

> However, many tests are failing. It looks like the environment upgrade 
> isn't properly implemented in setUp.
>

I've been doing some hacking around, and the EnvironmentStub class in trac 
does not seem to deal well with an environment upgrade.

In trac/env.py, the database manager shuts down all connections after an 
upgrade. The sqlite db for tests is in memory, is it not? Perhaps shutting 
it down also kills the db, and when the connection is reopened, it is empty?

If I comment out the DatabaseManager(self).
shutdown() line, the results of the upgrade are there.

So to me, this looks like a bug in trac.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-dev+unsubscr...@googlegroups.com.
To post to this group, send email to trac-dev@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to