Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66eb9f0

Browse files
committed
Fix bad merge of #6149
1 parent 6acf864 commit 66eb9f0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ckan/lib/navl/dictization_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def validate(data, schema, context=None):
300300
dicts_to_process = [errors_unflattened]
301301
while dicts_to_process:
302302
dict_to_process = dicts_to_process.pop()
303-
dict_to_process_copy = copy.deepcopy(dict_to_process)
303+
dict_to_process_copy = copy.copy(dict_to_process)
304304
for key, value in dict_to_process_copy.items():
305305
if not value:
306306
dict_to_process.pop(key)

ckan/tests/legacy/lib/test_navl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def test_simple():
341341

342342
converted_data, errors = validate(data, schema)
343343

344-
assert errors == {"numbers": [{"code": [u"Missing value"]}]}
344+
assert errors == {"numbers": [{"code": [u"Missing value"]}, {}]}
345345

346346

347347
def test_error_list_position():

0 commit comments

Comments
 (0)