From 0c3d5e861cd06efcff8d8c85b90e9f811aff7676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Cie=C5=9Blak?= Date: Tue, 28 Jun 2022 22:11:25 +0000 Subject: [PATCH] AttributeError: 'SmartList' object has no attribute '_children' --- tests/test_wikicode.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_wikicode.py b/tests/test_wikicode.py index ce624d7..78e7f4a 100644 --- a/tests/test_wikicode.py +++ b/tests/test_wikicode.py @@ -23,6 +23,7 @@ Tests for the Wikicode class, which manages a list of nodes. """ from functools import partial +import pickle import re from types import GeneratorType @@ -58,6 +59,8 @@ def test_nodes(): assert ["abc", "{{def}}"] == code.nodes with pytest.raises(ValueError): code.__setattr__("nodes", object) + P = pickle.dumps(code) + pickle.loads(P) def test_get():