From b7ee87caba6c9d47a5142a271369b394225c6dee Mon Sep 17 00:00:00 2001 From: aarif Date: Tue, 1 Oct 2019 13:27:32 +0500 Subject: [PATCH] updated the division to make the output compatible in python2 and python3 --- .../core/djangoapps/contentserver/test/test_contentserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/contentserver/test/test_contentserver.py b/openedx/core/djangoapps/contentserver/test/test_contentserver.py index 5c111bbdc9..9230e687e8 100644 --- a/openedx/core/djangoapps/contentserver/test/test_contentserver.py +++ b/openedx/core/djangoapps/contentserver/test/test_contentserver.py @@ -277,7 +277,7 @@ class ContentStoreToyCourseTest(SharedModuleStoreTestCase): 416 Requested Range Not Satisfiable. """ resp = self.client.get(self.url_unlocked, HTTP_RANGE='bytes={first}-{last}'.format( - first=(self.length_unlocked / 2), last=(self.length_unlocked / 4))) + first=(self.length_unlocked // 2), last=(self.length_unlocked // 4))) self.assertEqual(resp.status_code, 416) def test_range_request_malformed_out_of_bounds(self):