aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r--libbe/bugdir.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 8ec5a31..0bcf27e 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -760,12 +760,14 @@ class SimpleBugDirTestCase (unittest.TestCase):
def setUp(self):
# create a pre-existing bugdir in a temporary directory
self.dir = utility.Dir()
+ self.original_working_dir = os.getcwd()
os.chdir(self.dir.path)
self.bugdir = BugDir(self.dir.path, sink_to_existing_root=False,
allow_rcs_init=True)
self.bugdir.new_bug("preexisting", summary="Hopefully not imported")
self.bugdir.save()
def tearDown(self):
+ os.chdir(self.original_working_dir)
self.dir.cleanup()
def testOnDiskCleanLoad(self):
"""simple_bug_dir(sync_with_disk==True) should not import preexisting bugs."""