Skip to content

Commit 5035913

Browse files
committed
Export DumpError, LoadError
These are custom exception that are raised by the public `dumps`/`loads` methods. They are used by pytest-xdist which currently imports them from `execnet.gateway_base`.
1 parent e218d45 commit 5035913

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
Also fixed ``init_popen_io`` to use ``closefd=False`` for shared stdin and stdout file
1616
descriptors, preventing ``Bad file descriptor`` errors triggered by test_stdouterrin_setnull.
1717
* The library is now typed and the typing is exposed to type-checkers.
18-
* Re-exported ``Gateway`` and ``Channel`` from ``execnet``. The constructors
19-
are private.
18+
* Re-exported ``Gateway``, ``Channel``, ``DumpError`` and ``LoadError`` from
19+
``execnet``. The constructors are private.
2020
* Fixed ``GatewayBase.join()`` timeout argument getting ignored.
2121
* Removed support for Python 3.7.
2222
* Added official support for Python 3.12.

src/execnet/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
from .gateway import Gateway
1212
from .gateway_base import Channel
1313
from .gateway_base import DataFormatError
14+
from .gateway_base import DumpError
15+
from .gateway_base import LoadError
1416
from .gateway_base import RemoteError
1517
from .gateway_base import TimeoutError
1618
from .gateway_base import dump
@@ -41,8 +43,10 @@
4143
"default_group",
4244
"Channel",
4345
"dumps",
46+
"dump",
47+
"DumpError",
4448
"loads",
4549
"load",
46-
"dump",
50+
"LoadError",
4751
"DataFormatError",
4852
]

0 commit comments

Comments
 (0)