Skip to content

test_fstring.py with Python3.13.6 and 3.13.7 fails, 3.13.5 and 3.13.4 o.k. #137820

@Kadelka

Description

@Kadelka

Bug report

Bug description:

I tried to make altinstall Python3.13.6 and 3.13.7. Both versions fail with a problem with test_fstring. 3.13.5, 3.13.4, ... have been o.K., Python3.14.0.rc1 and rc2 are o.K.
My calling sequence

./configure --prefix=/usr/local --enable-ipv6 --enable-optimizations --enable-shared ; make

builds Python3.13.7 without error and then:
make test

results in:

make[1]: Verzeichnis „/home/install/Python-3.13.7“ wird verlassen

LD_LIBRARY_PATH=/install/Python-3.13.7 ./python -m test --pgo --timeout=

Using random seed: 3474636450

0:00:00 load avg: 0.51 Run 43 tests sequentially in a single process
...
0:01:04 load avg: 1.28 [17/43] test_fstring
test test_fstring failed
0:01:08 load avg: 1.26 [17/43] test_fstring failed (2 failures)
...

I tried to replace /usr/local/lib64/libpython3.13.so.1.0 by the fresh built libpython3.13.so.1.0 This had no effect with even after ldconfig. My old python is still running.
I tried python test_fstring.py (with old python). This results in

......................FF.F..............................................F.................
======================================================================
FAIL: test_conversions (__main__.TestCase.test_conversions) (str="f'{3! s}'")
----------------------------------------------------------------------
  File "<string>", line 1
    f'{3! s}'
        ^^^
SyntaxError: f-string: conversion type must come right after the exclamanation mark

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixestestsTests 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