Skip to content

Commit bfb0781

Browse files
committed
Add test for __text_signature__ being writable
1 parent ce3edfe commit bfb0781

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -243,3 +243,9 @@ def foo(): pass
243243
new_dict = { "customProp": "hello, world"}
244244
foo.__dict__ = new_dict
245245
assert foo.customProp == "hello, world"
246+
247+
248+
def test_function_text_signature_writable():
249+
def foo(): pass
250+
foo.__text_signature__ = 'foo()'
251+
assert foo.__text_signature__ == 'foo()'

0 commit comments

Comments
 (0)