Skip to content

Commit

Permalink
- tests.common: disable usage of keyring and gnome-keyring in the tes…
Browse files Browse the repository at this point in the history
…tsuite

Otherwise it'll lead to (unexpected) errors if python-keyring or gnome-keyring
are installed.
  • Loading branch information
marcus-h committed Jan 18, 2013
1 parent 63e2bca commit 46b9fd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/common.py
Expand Up @@ -106,7 +106,8 @@ def addExpectedRequest(method, url, **kwargs):

class OscTestCase(unittest.TestCase):
def setUp(self, copytree=True):
osc.core.conf.get_config(override_conffile=os.path.join(self._get_fixtures_dir(), 'oscrc'))
osc.core.conf.get_config(override_conffile=os.path.join(self._get_fixtures_dir(), 'oscrc'),
override_no_keyring=True, override_no_gnome_keyring=True)
self.tmpdir = tempfile.mkdtemp(prefix='osc_test')
if copytree:
shutil.copytree(os.path.join(self._get_fixtures_dir(), 'osctest'), os.path.join(self.tmpdir, 'osctest'))
Expand Down

0 comments on commit 46b9fd3

Please sign in to comment.