summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2021-07-23 22:47:40 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2021-07-23 22:47:40 -0700
commit0d4f1fab342017dddd8b914f71cf6938ac7ac622 (patch)
tree2bb2cab9e86c270df2158cf9c152374401c4fe6b /tests/unit
parent754b55a4b7ab14f98aa0ec308d176a0265885d03 (diff)
downloadisort-0d4f1fab342017dddd8b914f71cf6938ac7ac622.tar.gz
Make all exceptions pickleable
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_exceptions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/test_exceptions.py b/tests/unit/test_exceptions.py
index d3a063a7..f153e375 100644
--- a/tests/unit/test_exceptions.py
+++ b/tests/unit/test_exceptions.py
@@ -1,3 +1,5 @@
+import pickle
+
from isort import exceptions
@@ -8,6 +10,9 @@ class TestISortError:
def test_init(self):
assert isinstance(self.instance, exceptions.ISortError)
+ def test_pickleable(self):
+ assert isinstance(pickle.loads(pickle.dumps(self.instance)), exceptions.ISortError)
+
class TestExistingSyntaxErrors(TestISortError):
def setup_class(self):