Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

lib-python/3/test/test_property.py::unmodified

== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 03:38:33) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-5.4.0-182-generic-i686-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /build_dir/tmp/pytest/test_python_worker_2018634æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 1774459459
0:00:00 load avg: 5.13 Run 1 test sequentially in a single process
0:00:00 load avg: 5.13 [1/1] test_property
test_docstring_copy (test.test_property.PropertySubclassTests.test_docstring_copy) ... ok
test_docstring_copy2 (test.test_property.PropertySubclassTests.test_docstring_copy2)
Property tries to provide the best docstring it finds for its instances. ... FAIL
test_issue41287 (test.test_property.PropertySubclassTests.test_issue41287) ... FAIL
test_prefer_explicit_doc (test.test_property.PropertySubclassTests.test_prefer_explicit_doc) ... FAIL
test_property_new_getter_new_docstring (test.test_property.PropertySubclassTests.test_property_new_getter_new_docstring) ... ok
test_property_no_doc_on_getter (test.test_property.PropertySubclassTests.test_property_no_doc_on_getter) ... FAIL
test_property_setter_copies_getter_docstring (test.test_property.PropertySubclassTests.test_property_setter_copies_getter_docstring) ... ok
test_property_with_slots_and_doc_slot_docstring_present (test.test_property.PropertySubclassTests.test_property_with_slots_and_doc_slot_docstring_present) ... ERROR
test_property_with_slots_docstring_silently_dropped (test.test_property.PropertySubclassTests.test_property_with_slots_docstring_silently_dropped) ... ok
test_property_with_slots_no_docstring (test.test_property.PropertySubclassTests.test_property_with_slots_no_docstring) ... ERROR
test_slots_docstring_copy_exception (test.test_property.PropertySubclassTests.test_slots_docstring_copy_exception) ... ok
test_class_property (test.test_property.PropertyTests.test_class_property) ... ok
test_class_property_override (test.test_property.PropertyTests.test_class_property_override) ... ok
test_gh_115618 (test.test_property.PropertyTests.test_gh_115618) ... skipped 'implementation detail specific to cpython'
test_property___isabstractmethod__descriptor (test.test_property.PropertyTests.test_property___isabstractmethod__descriptor) ... ok
test_property_builtin_doc_writable (test.test_property.PropertyTests.test_property_builtin_doc_writable) ... ok
test_property_decorator_baseclass (test.test_property.PropertyTests.test_property_decorator_baseclass) ... ok
test_property_decorator_baseclass_doc (test.test_property.PropertyTests.test_property_decorator_baseclass_doc) ... ok
test_property_decorator_doc (test.test_property.PropertyTests.test_property_decorator_doc) ... ok
test_property_decorator_doc_writable (test.test_property.PropertyTests.test_property_decorator_doc_writable) ... ok
test_property_decorator_subclass (test.test_property.PropertyTests.test_property_decorator_subclass) ... ok
test_property_decorator_subclass_doc (test.test_property.PropertyTests.test_property_decorator_subclass_doc) ... ok
test_property_getter_doc_override (test.test_property.PropertyTests.test_property_getter_doc_override) ... ok
test_property_set_name_incorrect_args (test.test_property.PropertyTests.test_property_set_name_incorrect_args) ... FAIL
test_property_setname_on_property_subclass (test.test_property.PropertyTests.test_property_setname_on_property_subclass) ... ok
test_refleaks_in___init__ (test.test_property.PropertyTests.test_refleaks_in___init__) ... skipped 'implementation detail specific to cpython'
test_del_property (test.test_property.PropertyUnreachableAttributeNoName.test_del_property) ... ok
test_get_property (test.test_property.PropertyUnreachableAttributeNoName.test_get_property) ... ok
test_set_property (test.test_property.PropertyUnreachableAttributeNoName.test_set_property) ... ok
test_del_property (test.test_property.PropertyUnreachableAttributeWithName.test_del_property) ... ok
test_get_property (test.test_property.PropertyUnreachableAttributeWithName.test_get_property) ... ok
test_set_property (test.test_property.PropertyUnreachableAttributeWithName.test_set_property) ... ok

======================================================================
ERROR: test_property_with_slots_and_doc_slot_docstring_present (test.test_property.PropertySubclassTests.test_property_with_slots_and_doc_slot_docstring_present)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_property.py", line 321, in test_property_with_slots_and_doc_slot_docstring_present
    self.assertEqual("what's up", p.__doc__)  # new in 3.12: This gets set.
                                    ^^^^^^^
AttributeError: 'slotted_prop' object has no attribute '__doc__'

======================================================================
ERROR: test_property_with_slots_no_docstring (test.test_property.PropertySubclassTests.test_property_with_slots_no_docstring)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_property.py", line 291, in test_property_with_slots_no_docstring
    p = slotted_prop(undocumented_getter)  # New in 3.12: no AttributeError
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'slotted_prop' object attribute '__doc__' is read-only

======================================================================
FAIL: test_docstring_copy2 (test.test_property.PropertySubclassTests.test_docstring_copy2)
Property tries to provide the best docstring it finds for its instances.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_property.py", line 424, in test_docstring_copy2
    self.assertEqual(p2.__doc__, "doc 3")
         ^^^^^^^^^^^
AssertionError: 'user' != 'doc 3'
- user
+ doc 3


======================================================================
FAIL: test_issue41287 (test.test_property.PropertySubclassTests.test_issue41287)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_property.py", line 338, in test_issue41287
    self.assertEqual(doc, "issue 41287 is fixed",
         ^^^^^^^^^^^
AssertionError: 'This is a subclass of property' != 'issue 41287 is fixed'
- This is a subclass of property
+ issue 41287 is fixed
 : Subclasses of `property` ignores `doc` constructor argument

======================================================================
FAIL: test_prefer_explicit_doc (test.test_property.PropertySubclassTests.test_prefer_explicit_doc)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_property.py", line 439, in test_prefer_explicit_doc
    self.assertEqual(PropertySub(doc="explicit doc").__doc__, "explicit doc")
         ^^^^^^^^^^^
AssertionError: 'This is a subclass of property' != 'explicit doc'
- This is a subclass of property
+ explicit doc


======================================================================
FAIL: test_property_no_doc_on_getter (test.test_property.PropertySubclassTests.test_property_no_doc_on_getter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_property.py", line 466, in test_property_no_doc_on_getter
    self.assertEqual(PropertySub(NoDoc()).__doc__, None)
         ^^^^^^^^^^^
AssertionError: 'This is a subclass of property' != None

======================================================================
FAIL: test_property_set_name_incorrect_args (test.test_property.PropertyTests.test_property_set_name_incorrect_args)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_property.py", line 233, in test_property_set_name_incorrect_args
    p.__set_name__(*([0] * i))
TypeError: property.__set_name__() missing 2 required positional arguments: 'type' and 'name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_property.py", line 229, in test_property_set_name_incorrect_args
    with self.assertRaisesRegex(
AssertionError: "^__set_name__\(\) takes 2 positional arguments but 0 were given$" does not match "property.__set_name__() missing 2 required positional arguments: 'type' and 'name'"

----------------------------------------------------------------------
Ran 32 tests in 0.048s

FAILED (failures=5, errors=2, skipped=2)
0:00:00 load avg: 5.13 [1/1/1] test_property failed (2 errors, 5 failures)

== Tests result: FAILURE ==

1 test failed:
    test_property

Total duration: 223 ms
Total tests: run=32 failures=5 skipped=2
Total test files: run=1/1 failed=1
Result: FAILURE
test test_property failed
builder: pypy-c-jit-linux-x86-32 build #8377+
test: lib-python/3/test/test_property.py::unmodified