python 3 fixes

This commit is contained in:
aarif
2019-09-05 17:19:41 +05:00
parent fb2595e783
commit e7a9e4cf1f

View File

@@ -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