1
0
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:
Jelmer Vernooij
2007-12-24 11:02:32 -06:00
committed by Stefan Metzmacher
parent 7008f90e03
commit 4ff8f4e370
4 changed files with 26 additions and 29 deletions

View File

@@ -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()