Skip to content

Commit 9663729

Browse files
Add comment that caching is an implementation detail
Co-authored-by: Petr Viktorin <[email protected]>
1 parent 5ec7140 commit 9663729

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_difflib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def test_opcode_caching(self):
3535
self.assertEqual(opcode,
3636
[ ('insert', 0, 0, 0, 1),
3737
('equal', 0, 100, 1, 101)])
38+
# Implementation detail: opcodes are cached;
39+
# `get_opcodes()` returns the same object
3840
self.assertIs(opcode, sm.get_opcodes())
3941

4042
def test_bjunk(self):

0 commit comments

Comments
 (0)