We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3edfe commit bfb0781Copy full SHA for bfb0781
graalpython/com.oracle.graal.python.test/src/tests/test_functions.py
@@ -1,4 +1,4 @@
1
-# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
2
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3
#
4
# The Universal Permissive License (UPL), Version 1.0
@@ -243,3 +243,9 @@ def foo(): pass
243
new_dict = { "customProp": "hello, world"}
244
foo.__dict__ = new_dict
245
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