mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Highlighting tests for module builtin methods (PY-28017)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
def <info descr="PY.PREDEFINED_DEFINITION">__getattr__</info>(<info descr="PY.PARAMETER">name</info>):
|
||||
pass
|
||||
|
||||
def <info descr="PY.PREDEFINED_DEFINITION">__dir__</info>():
|
||||
pass
|
||||
|
||||
import io
|
||||
|
||||
<info descr="PY.BUILTIN_NAME">print</info>(io.<info descr="PY.PREDEFINED_USAGE">__getattr__</info>)
|
||||
<info descr="PY.BUILTIN_NAME">print</info>(io.<info descr="PY.PREDEFINED_USAGE">__dir__</info>)
|
||||
@@ -281,6 +281,11 @@ public class PythonHighlightingTest extends PyTestCase {
|
||||
doTest(LanguageLevel.PYTHON37, true, false);
|
||||
}
|
||||
|
||||
// PY-28017
|
||||
public void testModuleBuiltinMethods() {
|
||||
doTest(LanguageLevel.PYTHON37, false, true);
|
||||
}
|
||||
|
||||
public void testImplicitOctLongInteger() {
|
||||
doTest(LanguageLevel.PYTHON35, true, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user