mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Python: Rewrite test for __add__ special method
Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
@@ -38,9 +38,9 @@ b.__call__(44) # $ pt,tt=Base.__call__
|
||||
print("\n! b2")
|
||||
b2 = Base(2) # $ tt=Base.__init__
|
||||
|
||||
# __add__ is called
|
||||
b + b2
|
||||
b + 100
|
||||
|
||||
b + b2 # $ MISSING: tt=Base.__add__
|
||||
b + 100 # $ MISSING: tt=Base.__add__
|
||||
|
||||
|
||||
# ========
|
||||
|
||||
Reference in New Issue
Block a user