]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
typing, annotationlib: clean tests (#133087)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Mon, 28 Apr 2025 15:38:11 +0000 (08:38 -0700)
committerGitHub <noreply@github.com>
Mon, 28 Apr 2025 15:38:11 +0000 (08:38 -0700)
commit7f16f1bc114ea42ceb51ccb5008b74571a875f6b
tree65dee6fe866152bfb65f1b99d92fe852099df1e9
parent4cec0b510bfb779bc683825aa03961642b1e1549
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)
Lib/test/test_annotationlib.py
Lib/test/test_typing.py