Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file = self.__dict__['file'] , KeyError: 'file' in python3.11/tempfile.py with nose - 1.3.7 #1131

Open
tejaswini22199 opened this issue Aug 1, 2024 · 0 comments

Comments

@tejaswini22199
Copy link

Stack Trace from the Code :

File "/***/ nose-1.3.7/nose/plugins/logcapture.py", line 82, in emit
self.buffer.append(self.format(record))
^^^^^^^^^^^^^^^^^^^
File "/grid/0/jenkins/tools/python3/Python-3.11.0/lib/python3.11/logging/init.py", line 953, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "/grid/0/jenkins/tools/python3/Python-3.11.0/lib/python3.11/logging/init.py", line 695, in format
record.exc_text = self.formatException(record.exc_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/grid/0/jenkins/tools/python3/Python-3.11.0/lib/python3.11/logging/init.py", line 645, in formatException
traceback.print_exception(ei[0], ei[1], tb, None, sio)
File "/grid/0/jenkins/tools/python3/Python-3.11.0/lib/python3.11/traceback.py", line 124, in print_exception
te = TracebackException(type(value), value, tb, limit=limit, compact=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/grid/0/jenkins/tools/python3/Python-3.11.0/lib/python3.11/traceback.py", line 696, in init
self.notes = getattr(exc_value, 'notes', None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/grid/0/jenkins/tools/python3/Python-3.11.0/lib/python3.11/tempfile.py", line 477, in getattr
file = self.dict['file']
~~~~~~~~~~~~~^^^^^^^^
KeyError: 'file'

can anyone please help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant