Skip to content

Commit

Permalink
This is handled in the faultinjection testing now
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Mar 30, 2023
1 parent 1600848 commit c3d42c6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions apsw/tests.py
Expand Up @@ -6383,18 +6383,6 @@ def init8(self, name, flags):
def init9(self, name, flags):
super(TestFile, self).__init__("", name, (6, "six"))

def init10(self, name, flags):

class badlist(list): # doesn't allows setting an element

def __init__(self, *args):
super(badlist, self).__init__(args)

def __setitem__(self, key, value):
raise ValueError("container is frozen")

super(TestFile, self).__init__("", name, badlist(flags[0], flags[1]))

def init99(self, name, flags):
super(TestFile, self).__init__("", name, flags)

Expand Down Expand Up @@ -6866,8 +6854,6 @@ def __init__(self):
self.assertRaises(apsw.SQLError, self.assertRaisesUnraisable, ValueError, testdb)
TestFile.__init__ = TestFile.init9
self.assertRaises(apsw.SQLError, self.assertRaisesUnraisable, TypeError, testdb)
TestFile.__init__ = TestFile.init10
self.assertRaises(apsw.SQLError, self.assertRaisesUnraisable, ValueError, testdb)
TestFile.__init__ = TestFile.init99
testdb() # should work just fine

Expand Down

0 comments on commit c3d42c6

Please sign in to comment.