mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-76885 Conformance test failure: constructors_call_metaclass.py
Updated tests. GitOrigin-RevId: 854d97694a821599b6fbbf70f37b07fb9b5b7bb5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cb2b4ae26f
commit
1dfb8b59be
@@ -438,7 +438,8 @@ public class Py3ArgumentListInspectionTest extends PyInspectionTestCase {
|
||||
def __new__(cls, p) -> Self: ...
|
||||
|
||||
|
||||
c = MyClass(<warning descr="Parameter 'p' unfilled">)</warning>
|
||||
c1 = MyClass(<warning descr="Parameter 'p' unfilled">)</warning>
|
||||
c2 = MyClass(1) # TODO PY-80602 Missing error 'Unexpected argument'
|
||||
""");
|
||||
}
|
||||
|
||||
|
||||
@@ -416,25 +416,6 @@ public class PyArgumentListInspectionTest extends PyInspectionTestCase {
|
||||
|
||||
// PY-17877
|
||||
public void testMetaclassHavingDunderCall() {
|
||||
// TODO Metaclass's `__call__` has to be validated as well as `__init__` / `__new__`
|
||||
//runWithLanguageLevel(
|
||||
// LanguageLevel.getLatest(),
|
||||
// () -> doTestByText("""
|
||||
// class MetaFoo(type):
|
||||
// def __call__(cls, p3, p4):
|
||||
// print(f'MetaFoo.__call__: {cls}, {p3}, {p4}')
|
||||
//
|
||||
// class Foo(metaclass=MetaFoo):
|
||||
// pass
|
||||
//
|
||||
// class SubFoo(Foo):
|
||||
// def __new__(self, p1, p2):
|
||||
// # This never gets called
|
||||
// print(f'SubFoo.__new__: {p1}, {p2}')
|
||||
//
|
||||
// sub = SubFoo(1<warning descr="Parameter 'p4' unfilled">)</warning>
|
||||
// foo = Foo(3<warning descr="Parameter 'p4' unfilled">)</warning>""")
|
||||
//);
|
||||
runWithLanguageLevel(
|
||||
LanguageLevel.getLatest(),
|
||||
() -> doTestByText("""
|
||||
|
||||
Reference in New Issue
Block a user