Mercurial > hgsubversion
changeset 1491:8937f19586fe
test_revmap_migrate: restore revmap class in tearDown
The test has an unwanted side effect: changing default revmap class.
This patch adds a tearDown method to revert the side effect.
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 26 Jul 2016 11:38:23 +0100 |
parents | bc73b80baf98 |
children | e0eda6f2c2f2 0991df151799 |
files | tests/test_revmap_migrate.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_revmap_migrate.py +++ b/tests/test_revmap_migrate.py @@ -6,6 +6,10 @@ from mercurial.node import hex class TestRevMapMigrate(test_util.TestBase): + def tearDown(self): + # revert changes to defaultrevmapclass + svnmeta.SVNMeta._defaultrevmapclass = maps.RevMap + def _test_revmap_migrate(self, fromclass, toclass): # revmap interfaces to test getters = [