This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, corona10, grahamd, larry, pablogsal, petr.viktorin, vstinner
Date 2021-11-01.16:06:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635782790.32.0.98758649526.issue45319@roundup.psfhosted.org>
In-reply-to
Content
I created a new branch in my clone for you that has the 3.10 workaround disabled.

# checkout:
git clone -b bpo45319 https://github.com/tiran/wrapt.git
cd wrapt

# build src/wrapt/_wrappers.abi3.so
python3 setup.py build_ext -i

# run tests
$ PYTHONPATH=src python3.9 tests/test_update_attributes.py 
..........
----------------------------------------------------------------------
Ran 10 tests in 0.001s

OK

$ PYTHONPATH=src python3.10 tests/test_update_attributes.py 
FF........
======================================================================
FAIL: test_update_annotations (__main__.TestUpdateAttributes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/wrapt/tests/test_update_attributes.py", line 149, in test_update_annotations
    self.assertEqual(function.__wrapped__.__annotations__, override_annotations)
AssertionError: {} != {'override_annotations': ''}
- {}
+ {'override_annotations': ''}

======================================================================
FAIL: test_update_annotations_modified_on_original (__main__.TestUpdateAttributes)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/wrapt/tests/test_update_attributes.py", line 173, in test_update_annotations_modified_on_original
    self.assertEqual(function.__annotations__, override_annotations)
AssertionError: {} != {'override_annotations': ''}
- {}
+ {'override_annotations': ''}

----------------------------------------------------------------------
Ran 10 tests in 0.001s

FAILED (failures=2)
History
Date User Action Args
2021-11-01 16:06:30christian.heimessetrecipients: + christian.heimes, vstinner, larry, grahamd, petr.viktorin, corona10, pablogsal
2021-11-01 16:06:30christian.heimessetmessageid: <1635782790.32.0.98758649526.issue45319@roundup.psfhosted.org>
2021-11-01 16:06:30christian.heimeslinkissue45319 messages
2021-11-01 16:06:30christian.heimescreate