Skip to content

test_property fails with -00 mode #115254

Closed
Closed
@sobolevn

Description

@sobolevn

Bug report

» ./python.exe -OO -m test test_property  
Using random seed: 1955187317
0:00:00 load avg: 2.91 Run 1 test sequentially
0:00:00 load avg: 2.91 [1/1] test_property
test test_property failed -- Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython2/Lib/test/test_property.py", line 233, in test_slots_docstring_copy_exception
    with self.assertRaises(AttributeError):
    ...<4 lines>...
                return 1
AssertionError: AttributeError not raised

test_property failed (1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_property

Total duration: 27 ms
Total tests: run=27 failures=1 skipped=12
Total test files: run=1/1 failed=1
Result: FAILURE

I have a PR ready.

Linked PRs

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions