From e7a9e4cf1f98f096043cc69a62f62d7f8269eaa5 Mon Sep 17 00:00:00 2001 From: aarif Date: Thu, 5 Sep 2019 17:19:41 +0500 Subject: [PATCH] python 3 fixes --- cms/djangoapps/contentstore/views/tests/test_tabs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/tests/test_tabs.py b/cms/djangoapps/contentstore/views/tests/test_tabs.py index 343d12653a..ac31c1291c 100644 --- a/cms/djangoapps/contentstore/views/tests/test_tabs.py +++ b/cms/djangoapps/contentstore/views/tests/test_tabs.py @@ -89,7 +89,7 @@ class TabsPageTests(CourseTestCase): # remove the middle tab # (the code needs to handle the case where tabs requested for re-ordering is a subset of the tabs in the course) - removed_tab = tab_ids.pop(num_orig_tabs / 2) + removed_tab = tab_ids.pop(num_orig_tabs // 2) self.assertEqual(len(tab_ids), num_orig_tabs - 1) # post the request