Edgewall Software

Changeset 12715


Ignore:
Timestamp:
Apr 21, 2014, 3:44:22 AM (11 years ago)
Author:
Jun Omae
Message:

1.0.2dev: avoid a TypeError from setup.py test -s tracopt.versioncontrol.svn.tests.svn_fs.suite on Python interpreter's termination (a part of #11505)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0-stable/tracopt/versioncontrol/svn/tests/svn_fs.py

    r12448 r12715  
    3737from trac.util.concurrency import get_thread_id
    3838from trac.util.datefmt import utc
    39 from trac.versioncontrol import DbRepositoryProvider, Changeset, Node, \
    40                                 NoSuchChangeset
     39from trac.versioncontrol.api import DbRepositoryProvider, Changeset, Node, \
     40                                    NoSuchChangeset, RepositoryManager
    4141from tracopt.versioncontrol.svn import svn_fs
    4242
     
    10251025
    10261026    def tearDown(self):
     1027        self.repos.close()
     1028        self.repos = None
     1029        # clear cached repositories to avoid TypeError on termination (#11505)
     1030        RepositoryManager(self.env).reload_repositories()
    10271031        self.env.reset_db()
    10281032        # needed to avoid issue with 'WindowsError: The process cannot access
     
    10471051        self.repos.close()
    10481052        self.repos = None
     1053        # clear cached repositories to avoid TypeError on termination (#11505)
     1054        RepositoryManager(self.env).reload_repositories()
    10491055
    10501056
Note: See TracChangeset for help on using the changeset viewer.