summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestOptions/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestOptions/__init__.py')
-rw-r--r--testsuite/Testsrc/Testlib/TestOptions/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/Testsrc/Testlib/TestOptions/__init__.py b/testsuite/Testsrc/Testlib/TestOptions/__init__.py
index 688f4e54c..ca2c41359 100644
--- a/testsuite/Testsrc/Testlib/TestOptions/__init__.py
+++ b/testsuite/Testsrc/Testlib/TestOptions/__init__.py
@@ -4,7 +4,7 @@ import os
import tempfile
from Bcfg2.Compat import wraps, ConfigParser
-from Bcfg2.Options import Parser
+from Bcfg2.Options import Parser, PathOption
from testsuite.common import Bcfg2TestCase
@@ -75,7 +75,10 @@ class OptionTestCase(Bcfg2TestCase):
Parser.unit_test = False
Bcfg2TestCase.setUpClass()
+ def setUp(self):
+ Bcfg2TestCase.setUp(self)
+ PathOption.repository = None
+
@classmethod
def tearDownClass(cls):
Parser.unit_test = True
- Bcfg2TestCase.tearDownClass()