Skip to content

Commit 6a9bb5c

Browse files
committed
Add test confirming correct handling of zope.interface.Interface in query.
1 parent c674f54 commit 6a9bb5c

File tree

1 file changed

+14
-1
lines changed
  • python/ql/test/query-tests/Functions/general

1 file changed

+14
-1
lines changed

python/ql/test/query-tests/Functions/general/special.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,17 @@ def __exit__(self, *args):
1212
pass
1313

1414
def __get__(self, *args):
15-
pass
15+
pass
16+
17+
from zope.interface import Interface
18+
19+
class I(Interface):
20+
pass
21+
22+
class M(I):
23+
24+
def __setattr__(name, value):
25+
pass
26+
27+
def __getitem__(name):
28+
pass

0 commit comments

Comments
 (0)