mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint Fixes
Lint Fixes
This commit is contained in:
parent
22792e56cc
commit
6c20e146c3
1 changed files with 3 additions and 2 deletions
|
@ -31,6 +31,7 @@ SDB_OPTS = {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
||||
class SdbTestCase(TestCase, LoaderModuleMockMixin):
|
||||
'''
|
||||
|
@ -41,7 +42,7 @@ class SdbTestCase(TestCase, LoaderModuleMockMixin):
|
|||
def tearDownClass(cls):
|
||||
try:
|
||||
os.unlink(TEMP_DATABASE_FILE)
|
||||
except:
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
def setup_loader_modules(self):
|
||||
|
@ -52,7 +53,7 @@ class SdbTestCase(TestCase, LoaderModuleMockMixin):
|
|||
def test_sqlite_get_not_found(self):
|
||||
what = sdb.sdb_get(
|
||||
'sdb://test_sdb_data/thisKeyDoesNotExist', SDB_OPTS)
|
||||
self.assertEqual(what, None, 'what is "{!r}"'.format(what))
|
||||
self.assertEqual(what, None, 'what is "{0!r}"'.format(what))
|
||||
|
||||
# test with SQLite database write and read
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue