diff options
Diffstat (limited to 'Lib/test/test_shelve.py')
-rw-r--r-- | Lib/test/test_shelve.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_shelve.py b/Lib/test/test_shelve.py index bd51d86..b71af2b 100644 --- a/Lib/test/test_shelve.py +++ b/Lib/test/test_shelve.py @@ -162,6 +162,10 @@ class TestCase(unittest.TestCase): else: self.fail('Closed shelf should not find a key') + def test_default_protocol(self): + with shelve.Shelf({}) as s: + self.assertEqual(s._protocol, 3) + from test import mapping_tests class TestShelveBase(mapping_tests.BasicTestMappingProtocol): |