nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 396 forks source link

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

Open tejaswini22199 opened 1 month ago

tejaswini22199 commented 1 month ago

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?