diff --git a/python/tests/rd_tests/test_grid.py b/python/tests/rd_tests/test_grid.py index 5ebe59635..7b20b9045 100644 --- a/python/tests/rd_tests/test_grid.py +++ b/python/tests/rd_tests/test_grid.py @@ -312,7 +312,7 @@ def test_truncated_file(self): size = os.path.getsize("TEST.EGRID") with open("TEST.EGRID", "r+") as f: - f.truncate(size / 2) + f.truncate(size // 2) with self.assertRaises(IOError): Grid("TEST.EGRID") diff --git a/python/tests/rd_tests/test_rd_sum.py b/python/tests/rd_tests/test_rd_sum.py index 7d701b974..a18e71b2a 100644 --- a/python/tests/rd_tests/test_rd_sum.py +++ b/python/tests/rd_tests/test_rd_sum.py @@ -85,7 +85,7 @@ def test_truncated_smspec(self): file_size = os.path.getsize("ECLIPSE.SMSPEC") with open("ECLIPSE.SMSPEC", "r+") as f: - f.truncate(file_size / 2) + f.truncate(file_size // 2) with self.assertRaises(IOError): Summary("ECLIPSE") @@ -97,7 +97,7 @@ def test_truncated_data(self): file_size = os.path.getsize("ECLIPSE.UNSMRY") with open("ECLIPSE.UNSMRY", "r+") as f: - f.truncate(file_size / 2) + f.truncate(file_size // 2) with self.assertRaises(IOError): Summary("ECLIPSE")