X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/87b8df28c48353d3d08d7e88d178c7a567de816a..5070a24121ca3a00bbb40b89f60d731fabbf8c52:/tests/composition.py?ds=inline diff --git a/tests/composition.py b/tests/composition.py index 542cff6..71eee6a 100644 --- a/tests/composition.py +++ b/tests/composition.py @@ -147,7 +147,18 @@ class C: "in one line because it's too long" ) - # This is weird but true. + dis_c_instance_method = """\ + %3d 0 LOAD_FAST 1 (x) + 2 LOAD_CONST 1 (1) + 4 COMPARE_OP 2 (==) + 6 LOAD_FAST 0 (self) + 8 STORE_ATTR 0 (x) + 10 LOAD_CONST 0 (None) + 12 RETURN_VALUE + """ % ( + _C.__init__.__code__.co_firstlineno + 1, + ) + assert ( expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect == {