gecko-dev/python
Mike Hommey 84236733a9 Bug 1839263 - Don't derive assertRaisesFromLine from assertRaises. r=firefox-build-system-reviewers,ahochheiden
In python 3.11 (maybe also 3.10, I haven't tested that version ; 3.9 was
definitely different), by the time the context manager comes back in our
assertRaisesFromLine, the traceback is not available anymore (or yet,
I'm not entirely sure which way it does) to inspect and check the line
numbers we want to check.

And while assertRaises exposes the thrown exception in its `exception`
attribute, it also resets the traceback associated with it, so we can't
find it there either.

So instead, we implement our own context manager for
assertRaisesFromLine such that we can access that traceback.

Differential Revision: https://phabricator.services.mozilla.com/D181425
2023-06-22 07:30:02 +00:00
..
docs Bug 1830069 - Fix reference to old site file name in docs, r=ahochheiden 2023-04-26 18:25:15 +00:00
gdbpp/gdbpp Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden 2023-03-20 13:06:28 +00:00
l10n Bug 1839334 - Remove Fluent migration recipes for Firefox 113-115, r=bolsson DONTBUILD 2023-06-20 18:11:30 +00:00
lldbutils Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau 2023-03-20 13:06:27 +00:00
mach Bug 1838952 - Removed a Python 3.6 specific workaround since it is no longer needed r=firefox-build-system-reviewers,glandium 2023-06-22 02:15:58 +00:00
mozboot Bug 1838948 - Update reference to `Python 3.6` as the minimum Python version that Mach supports `to Python 3.7` r=firefox-build-system-reviewers,glandium 2023-06-22 02:15:57 +00:00
mozbuild Bug 1839263 - Don't derive assertRaisesFromLine from assertRaises. r=firefox-build-system-reviewers,ahochheiden 2023-06-22 07:30:02 +00:00
mozlint Bug 1757373 - Enable linting to run in parallel when '.' is specified as the path. r=linter-reviewers,ahal 2023-05-09 13:11:21 +00:00
mozperftest Bug 1816169 - Remove perftest_android_main.js and perftest_android_view.js from nightly cron. r=perftest-reviewers,sparky 2023-06-20 13:17:01 +00:00
mozrelease Bug 1774273 - Transition mac notarization to signingscript r=taskgraph-reviewers,bhearsum 2023-05-23 17:31:37 +00:00
mozterm Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau 2023-03-20 13:06:27 +00:00
mozversioncontrol Bug 1835943 - Properly construct CallerProcessError in `_push_to_try_with_log_capture` r=ahal 2023-06-12 22:22:21 +00:00
sites Bug 1839173 - Fix support upstream results in wpt-interop-scores, r=Sasha 2023-06-20 12:48:22 +00:00
README
mach_commands.py Bug 1801836 - Remove no longer necessary 'from __future__' imports under python/. r=linter-reviewers,glandium,ahal DONTBUILD 2022-12-23 01:26:15 +00:00
moz.build Bug 1806642 - update in-tree references to 'Lint and Formatting' bugzilla component. r=Standard8 2022-12-21 14:38:47 +00:00

README

This directory contains common Python code.

The basic rule is that if Python code is cross-module (that's "module" in the
Mozilla meaning - as in "module ownership") and is MPL-compatible, it should
go here.

What should not go here:

* Vendored python modules (use third_party/python instead)
* Python that is not MPL-compatible (see other-licenses/)
* Python that has good reason to remain close to its "owning" (Mozilla)
  module (e.g. it is only being consumed from there).

Historical information can be found at
https://bugzilla.mozilla.org/show_bug.cgi?id=775243
https://bugzilla.mozilla.org/show_bug.cgi?id=1346025