Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Weird test failures related to tracebacks #95818

Closed
Assignees
markshannonbrandtbucher
Labels
3.11only security fixes3.12only security fixesrelease-blockertype-bugAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dump
@Themanwithoutaplan

Description

@Themanwithoutaplan

Bug report

I've recently been getting test failures, including segmentation faults, on different arcs (MacOS, Docker images) with Python 3.11 beta. The test itself is not at fault so I guess it's some kind of runtime issue.

Here'sthetraceback:________________________test_read_single_cell_formula[False-='Sheet2 - Numbers'!D5]________________________exc=<class'ResourceWarning'>value=ResourceWarning("unclosed file <_io.BufferedReader name='sample.xlsx'>")tb=<tracebackobjectat0x10e3f4b00>,limit=None,chain=Truedefformat_exception(exc,/,value=_sentinel,tb=_sentinel,limit=None, \chain=True):"""Format a stack trace and the exception information.        The arguments have the same meaning as the corresponding arguments        to print_exception().  The return value is a list of strings, each        ending in a newline and some containing internal newlines.  When        these lines are concatenated and printed, exactly the same text is        printed as does print_exception().        """value,tb=_parse_value_tb(exc,value,tb)>te=TracebackException(type(value),value,tb,limit=limit,compact=True)chain=Trueexc=<class'ResourceWarning'>limit=Nonetb=<tracebackobjectat0x10e3f4b00>value=ResourceWarning("unclosed file <_io.BufferedReader name='sample.xlsx'>")/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/traceback.py:139:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/traceback.py:688:in__init__self.stack=StackSummary._extract_from_extended_frame_gen(_seen= {4539126048}capture_locals=Falsecompact=Trueexc_traceback=<tracebackobjectat0x10e3f4b00>exc_type=<class'ResourceWarning'>exc_value=ResourceWarning("unclosed file <_io.BufferedReader name='sample.xlsx'>")is_recursive_call=Falselimit=Nonelookup_lines=Truemax_group_depth=10max_group_width=15self=<traceback.TracebackExceptionobjectat0x10e4029d0>/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/traceback.py:416:in_extract_from_extended_frame_genforf, (lineno,end_lineno,colno,end_colno)inframe_gen:capture_locals=Falsefnames=set()frame_gen=<generatorobject_walk_tb_with_full_positionsat0x10d50c3c0>klass=<class'traceback.StackSummary'>limit=Nonelookup_lines=Trueresult= []_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _tb=<tracebackobjectat0x10e3f4b00>def_walk_tb_with_full_positions(tb):# Internal version of walk_tb that yields full code positions including# end line and column information.whiletbisnotNone:>positions=_get_code_position(tb.tb_frame.f_code,tb.tb_lasti)EAttributeError:'frozenset'objecthasnoattribute'f_code'tb=<tracebackobjectat0x10e3f4b00>/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/traceback.py:353:AttributeError==========================================shorttestsummaryinfo==========================================FAILEDopenpyxl/tests/test_iter.py::test_read_single_cell_formula[False-='Sheet2 - Numbers'!D5]-Attribut...===========================1failed,2467passed,16skipped,6xfailedin8.24s===========================ERROR:InvocationErrorforcommand/Users/charlieclark/Projects/openpyxl/.tox/py311/bin/pytestopenpyxl (exitedwithcode1)__________________________________________________summary__________________________________________________ERROR:py311:commandsfailed

And an example from the Docker image athttps://foss.heptapod.net/openpyxl/openpyxl/-/jobs/618571

Your environment

MacOS 10.15, official docker image (slim)
Python 3.11 beta 4 & 5

I suspect the issue is somewhere between pytest and Python3.11

Metadata

Metadata

Labels

3.11only security fixes3.12only security fixesrelease-blockertype-bugAn unexpected behavior, bug, or errortype-crashA hard crash of the interpreter, possibly with a core dump

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp