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 8d88ce1 commit a4e7e8eCopy full SHA for a4e7e8e
tests.py
@@ -19,7 +19,10 @@
19
"""
20
21
import logging
22
-import dill
+try:
23
+ import dill
24
+except ImportError:
25
+ dill = False
26
27
from nameparser import HumanName
28
from nameparser.util import u
@@ -78,8 +81,9 @@ def test_config_pickle(self):
78
81
C = Constants()
79
82
self.assertTrue(dill.pickles(C))
80
83
84
+ @unittest.skipUnless(dill,"requires python-dill module to test pickling")
85
def test_name_instance_pickle(self):
- hn = HumanName("First Last")
86
+ hn = HumanName("Title First Middle Middle Last, Jr.")
87
self.assertTrue(dill.pickles(hn))
88
89
def test_comparison(self):
0 commit comments