On Monday, November 14, 2016 at 2:34:38 PM UTC-5, Jeffrey Ratcliffe wrote:
>
>
>
> 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.
>

Tests are passing with in-memory SQLite database after r15965.
https://trac-hacks.org/changeset/15965
I haven't tested with other databases.
 

> 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.
>

That should probably be fixed.  I created a ticket for the issue:
https://trac.edgewall.org/ticket/12618

- Ryan

-- 
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 [email protected].
To post to this group, send email to [email protected].
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