Closed
Description
Bug report
Bug description:
❯ ruff check --target-version=py314 --preview --select RUF027 Lib/test/support/__init__.py
Lib/test/support/__init__.py:1087:26: RUF027 Possible f-string without an `f` prefix
|
1085 | memlimit = _parse_memlimit(limit)
1086 | if memlimit < _2G - 1:
1087 | raise ValueError('Memory limit {limit!r} too low to be useful')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF027
1088 |
1089 | real_max_memuse = memlimit
|
= help: Add `f` prefix
Lib/test/support/__init__.py:2361:26: RUF027 Possible f-string without an `f` prefix
|
2359 | max_depth = 20_000
2360 | elif max_depth < 3:
2361 | raise ValueError("max_depth must be at least 3, got {max_depth}")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUF027
2362 | depth = get_recursion_depth()
2363 | depth = max(depth - 1, 1) # Ignore infinite_recursion() frame.
|
= help: Add `f` prefix
Found 2 errors.
Related to #135069
I'll submit a PR shortly.
CPython versions tested on:
CPython main branch, 3.13, 3.14
Operating systems tested on:
No response