summaryrefslogtreecommitdiff
path: root/gitlab/tests
diff options
context:
space:
mode:
authorbourgesl <bourges.laurent@gmail.com>2019-07-15 13:45:23 +0200
committerMax Wittig <max.wittig95@gmail.com>2019-07-21 21:01:36 +0200
commitb4b5decb7e49ac16d98d56547a874fb8f9d5492b (patch)
tree14fa3b363bb3c8c4c6d08a3dff28997a8728b01f /gitlab/tests
parent262b222000dad30fc6dfc63ccf2fa200eba09662 (diff)
downloadgitlab-b4b5decb7e49ac16d98d56547a874fb8f9d5492b.tar.gz
fix: improve pickle support
Diffstat (limited to 'gitlab/tests')
-rw-r--r--gitlab/tests/test_base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/tests/test_base.py b/gitlab/tests/test_base.py
index 2526bee..47eda6c 100644
--- a/gitlab/tests/test_base.py
+++ b/gitlab/tests/test_base.py
@@ -93,6 +93,7 @@ class TestRESTObject(unittest.TestCase):
self.assertIsInstance(unpickled, FakeObject)
self.assertTrue(hasattr(unpickled, "_module"))
self.assertEqual(unpickled._module, original_obj_module)
+ pickled2 = pickle.dumps(unpickled)
def test_attrs(self):
obj = FakeObject(self.manager, {"foo": "bar"})