Skip to content

Commit 3dff3a7

Browse files
committed
Add test for __new__ not being descriptor
1 parent 1874dfa commit 3dff3a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_class.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,9 @@ def inner(other):
4646
return inner
4747

4848
assert A() == A()
49+
50+
51+
def test_new_not_descriptor():
52+
class C:
53+
__new__ = str
54+
assert C() == str(C)

0 commit comments

Comments
 (0)