mirror of
https://github.com/samba-team/samba.git
synced 2025-11-27 08:23:49 +03:00
r26583: Throw a proper exception in the python code when tdb_open() fails, fix indentation in generated SWIG code from pidl.
This commit is contained in:
committed by
Stefan Metzmacher
parent
7008f90e03
commit
4ff8f4e370
@@ -10,6 +10,12 @@ import tdb
|
||||
from unittest import TestCase
|
||||
import os
|
||||
|
||||
|
||||
class OpenTdbTests(TestCase):
|
||||
def test_nonexistant_read(self):
|
||||
self.assertRaises(IOError, tdb.Tdb, "/some/nonexistant/file", 0, tdb.DEFAULT, os.O_RDWR)
|
||||
|
||||
|
||||
class SimpleTdbTests(TestCase):
|
||||
def setUp(self):
|
||||
super(SimpleTdbTests, self).setUp()
|
||||
|
||||
Reference in New Issue
Block a user