{"id":20697663,"url":"https://github.com/opennti/nti.nose_traceback_info","last_synced_at":"2025-06-18T23:36:55.932Z","repository":{"id":10536205,"uuid":"12730666","full_name":"OpenNTI/nti.nose_traceback_info","owner":"OpenNTI","description":"Make nose output __traceback_info for more useful tracebacks using zope.exceptions","archived":false,"fork":false,"pushed_at":"2023-04-24T18:06:36.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-18T22:39:27.270Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenNTI.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-09-10T13:44:36.000Z","updated_at":"2023-04-24T16:25:12.000Z","dependencies_parsed_at":"2025-03-11T02:51:22.384Z","dependency_job_id":"53fb9c20-13c1-46d3-ab7a-974ebfb8a7b4","html_url":"https://github.com/OpenNTI/nti.nose_traceback_info","commit_stats":null,"previous_names":["nextthought/nti.nose_traceback_info"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/OpenNTI/nti.nose_traceback_info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.nose_traceback_info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.nose_traceback_info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.nose_traceback_info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.nose_traceback_info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenNTI","download_url":"https://codeload.github.com/OpenNTI/nti.nose_traceback_info/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenNTI%2Fnti.nose_traceback_info/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260647313,"owners_count":23041673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T00:19:21.520Z","updated_at":"2025-06-18T23:36:50.918Z","avatar_url":"https://github.com/OpenNTI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\n nose_traceback_info\n=====================\n\nHave you ever wanted supplemental (debugging) info included in an\nerror or failure traceback produced by `nose`_? Do you find that\nnose's `Failure Detail`_ plugin fails you (for example, because you\nuse `PyHamcrest`_ matchers)? Developing server software using Zope,\nPlone, Paste or `WebError`_? Then this plugin might be the solution\nyou're looking for: it allows you to add whatever detailed information\nyou want to any frame in your traceback. Turn a traceback like this::\n\n  Traceback (most recent call last):\n  File \"/.../nti.nose_traceback_info/src/nti/nose_traceback_info/tests/test_nose_traceback_info.py\", line 39, in test_format_failure\n    t, formatted, _ = self.plugin.formatFailure(None, exc_info)\n  File \"/.../nti.nose_traceback_info/src/nti/nose_traceback_info/__init__.py\", line 48, in formatFailure\n    return self.formatError( test, exc_info)\n  File \"/.../nti.nose_traceback_info/src/nti/nose_traceback_info/__init__.py\", line 31, in formatError\n    t, v, tb = exc_info\n  TypeError: 'builtin_function_or_method' object is not iterable\n\ninto a traceback like this::\n\n  TypeError: Traceback (most recent call last):\n  Module unittest.case, line 331, in run\n    testMethod()\n  Module nti.nose_traceback_info.tests.test_nose_traceback_info, line 39, in test_format_failure\n    t, formatted, _ = self.plugin.formatFailure(None, exc_info)\n    - __traceback_info__: (\"calling plugin with test and exc_info\", None, \u003cbuild-in function exc_info\u003e)\n  Module nti.nose_traceback_info, line 48, in formatFailure\n    return self.formatError( test, exc_info)\n  Module nti.nose_traceback_info, line 31, in formatError\n    t, v, tb = exc_info\n    - __traceback_info__: (\"Test and exc_info args\", None, \u003cbuilt-in function exc_info\u003e)\n  TypeError: 'builtin_function_or_method' object is not iterable\n\n\n.. _Failure Detail: https://nose.readthedocs.org/en/latest/plugins/failuredetail.html\n.. _nose: https://nose.readthedocs.org/en/latest/\n.. _PyHamcrest: https://pyhamcrest.readthedocs.org\n.. _WebError: https://pypi.python.org/pypi/WebError\n\nUsage\n=====\n\nOnce the plugin is installed (using ``pip`` or in a ``setup.py`` or\n``requirements.txt`` file), it is enabled by default, just like\n``logcapture.`` The plugin operates by looking for local variables in\neach frame in a traceback and formatting them (both in captured logs\nand tracebacks displayed for failured tests). The variables are\ndefined by conventions developed (and documented) by `Zope`_; these\nconventions are also followed by `Paste`_ and `WebError`_, meaning\nthat information added to help debug tests can also be used to debug\nproduction errors.\n\nSee that documentation for details on the variables. As a quick start,\nthe most important and most commonly used variable is\n``__traceback_info__``, to which you can assign arbitrary information.\nThe ``repr`` of ``__traceback_info__`` is included in the traceback::\n\n  def formatError(self, test, exc_info):\n      __traceback_info__ = \"Test and exc_info args\", test, exc_info\n      t, v, tb = exc_info\n\n\n.. _paste: http://pythonpaste.org/modules/exceptions.html#module-paste.exceptions.collector\n.. _zope: http://docs.zope.org/zope.exceptions/api.html\n\nOptions\n-------\n\nIn addition to the standard environment variable and flags to enable\nthe plugin, additional options control some behaviour.\n\n``--traceback-long-filenames``\n  Use complete filenames, not module names, in formatted\n  tracebacks.\n``--traceback-nologcapture``\n  Do not format tracebacks captured in logs.\n\nOther Plugins\n=============\n\nThis plugin is known to cooperate correctly with `nose-progressive`_,\nwhich also adjusts the traceback.\n\n.. _nose-progressive: https://pypi.python.org/pypi/nose-progressive/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopennti%2Fnti.nose_traceback_info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopennti%2Fnti.nose_traceback_info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopennti%2Fnti.nose_traceback_info/lists"}