Merge pull request #21881 from edx/BOM-873

Updated the division operation to make the output compatible with both python versions - BOM-873
This commit is contained in:
Aarif
2019-10-08 13:41:15 +05:00
committed by GitHub

View File

@@ -272,7 +272,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):