We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a3782 commit 790dd9fCopy full SHA for 790dd9f
importlib_metadata/tests/test_main.py
@@ -2,6 +2,7 @@
2
from __future__ import unicode_literals
3
4
import re
5
+import pickle
6
import textwrap
7
import unittest
8
import importlib
@@ -189,3 +190,10 @@ def test_egg(self):
189
190
with self.add_sys_path(egg):
191
with self.assertRaises(PackageNotFoundError):
192
version('foo')
193
+
194
195
+class TestEntryPoints(unittest.TestCase):
196
+ def test_entry_point_pickleable(self):
197
+ ep = importlib_metadata.EntryPoint('name', 'value', 'group')
198
+ revived = pickle.loads(pickle.dumps(ep))
199
+ assert revived == ep
0 commit comments