From 40c3253d815ce4a160b27511d9b45273e2018596 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Wed, 17 Sep 2014 14:14:00 -0400 Subject: [PATCH] Use more idiomatic python for deleting an attribute --- .../xmodule/xmodule/modulestore/tests/test_split_modulestore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py b/common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py index 0d63264a3a..22c1afd0df 100644 --- a/common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py +++ b/common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py @@ -1593,7 +1593,7 @@ class TestInheritance(SplitModuleTest): # unset on parent, retrieve child, verify unset chapter = modulestore().get_item(chapter.location.version_agnostic()) - chapter.fields['visible_to_staff_only'].delete_from(chapter) + del chapter.visible_to_staff_only modulestore().update_item(chapter, self.user_id) problem = modulestore().get_item(problem.location.version_agnostic())