summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dict_version.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-06-03 12:30:58 (GMT)
committerGitHub <noreply@github.com>2019-06-03 12:30:58 (GMT)
commit91234a16367b56ca03ee289f7c03a34d4cfec4c8 (patch)
tree81d13661e09df4712009641eaba30e4599f1b776 /Lib/test/test_dict_version.py
parent29ec4228106ed5f970d1c3666614f4a51bad192c (diff)
downloadcpython-91234a16367b56ca03ee289f7c03a34d4cfec4c8.zip
cpython-91234a16367b56ca03ee289f7c03a34d4cfec4c8.tar.gz
cpython-91234a16367b56ca03ee289f7c03a34d4cfec4c8.tar.bz2
bpo-26219: per opcode cache for LOAD_GLOBAL (GH-12884)
This patch implements per opcode cache mechanism, and use it in only LOAD_GLOBAL opcode. Based on Yury's opcache3.patch in bpo-26219.
Diffstat (limited to 'Lib/test/test_dict_version.py')
-rw-r--r--Lib/test/test_dict_version.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_dict_version.py b/Lib/test/test_dict_version.py
index 5671f9f..cb79e74 100644
--- a/Lib/test/test_dict_version.py
+++ b/Lib/test/test_dict_version.py
@@ -80,14 +80,14 @@ class DictVersionTests(unittest.TestCase):
# setting a key to the same value with dict.__setitem__
# must change the version
- self.check_version_changed(d, d.__setitem__, 'key', value)
+ self.check_version_dont_change(d, d.__setitem__, 'key', value)
# setting a key to the same value with dict.update
# must change the version
- self.check_version_changed(d, d.update, key=value)
+ self.check_version_dont_change(d, d.update, key=value)
d2 = self.new_dict(key=value)
- self.check_version_changed(d, d.update, d2)
+ self.check_version_dont_change(d, d.update, d2)
def test_setitem_equal(self):
class AlwaysEqual: