typing, annotationlib: clean tests (#133087)

- Add @cpython_only decorator to lazy import tests
- Rename reference to SOURCE format
- Always two newlines between test case classes
- Merge two classes of ForwardRef tests
- Use get_annotations instead of annotationlib.get_annotations
- Format test_annotationlib with Black (not expecting that we'll keep this up
  but it's close to Black-formatted right now)
This commit is contained in:
Jelle Zijlstra 2025-04-28 08:38:11 -07:00 committed by GitHub
parent 4cec0b510b
commit 7f16f1bc11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 327 additions and 355 deletions

File diff suppressed because it is too large Load diff