From 093e5a543a11765e667623f4382a786d12ce50c5 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 26 Sep 2019 13:23:15 -0400 Subject: [PATCH] Division changed in python3 to produce floats even when you divide two ints. --- common/lib/xmodule/xmodule/modulestore/tests/test_publish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/modulestore/tests/test_publish.py b/common/lib/xmodule/xmodule/modulestore/tests/test_publish.py index 7610c07d87..4d970144e9 100644 --- a/common/lib/xmodule/xmodule/modulestore/tests/test_publish.py +++ b/common/lib/xmodule/xmodule/modulestore/tests/test_publish.py @@ -218,7 +218,7 @@ class DraftPublishedOpTestCourseSetup(unittest.TestCase): parent_id = 'course' for idx in range(num_items): if parent_type != 'course': - parent_id = _make_block_id(parent_type, idx / 2) + parent_id = _make_block_id(parent_type, idx // 2) parent_item = getattr(self, parent_id) block_id = _make_block_id(block_type, idx) setattr(self, block_id, ItemFactory.create(