summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shelve.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-07-01 09:33:00 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-07-01 09:33:00 (GMT)
commit8faca61fec8ef004feb534dee3da052f3bed82ce (patch)
tree6c2817679df60e8e789a65ec8291288070f86ad8 /Lib/test/test_shelve.py
parente39682b0768bcf06d3c0d8480dd2f98824afafe6 (diff)
downloadcpython-8faca61fec8ef004feb534dee3da052f3bed82ce.zip
cpython-8faca61fec8ef004feb534dee3da052f3bed82ce.tar.gz
cpython-8faca61fec8ef004feb534dee3da052f3bed82ce.tar.bz2
Issue #27431: Update default protocol version in shelve.Shelf() documentation
shelve.open() documentation was updated in f351fb7ea179.
Diffstat (limited to 'Lib/test/test_shelve.py')
-rw-r--r--Lib/test/test_shelve.py4
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):