aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-12-09 11:59:12 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-09 12:00:35 +0100
commitba6865674c4efc56e47a986cec42a288561b67b8 (patch)
tree67a6f9fd699038639b8e8dd240e257181ef97ae4 /tests
parent4c0e5926d80295d41cbb8b99b313f22f4c1a50d9 (diff)
gbp.config tests: don't throw OSError if gbp.conf does not exist
let the assertion hit instead Gbp-Dch: Ignore
Diffstat (limited to 'tests')
-rw-r--r--tests/19_test_gbp_scripts_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/19_test_gbp_scripts_config.py b/tests/19_test_gbp_scripts_config.py
index f38be84..7e78e77 100644
--- a/tests/19_test_gbp_scripts_config.py
+++ b/tests/19_test_gbp_scripts_config.py
@@ -40,7 +40,7 @@ class TestGbpConfigCommand(unittest.TestCase):
def setUp(self):
self.conffiles_save = os.environ.get('GBP_CONF_FILES')
self.confname = 'tests/data/gbp_config.conf'
- self.assertTrue(os.stat(self.confname))
+ self.assertTrue(os.path.exists(self.confname))
os.environ['GBP_CONF_FILES'] = self.confname
def tearDown(self):