Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make tests compatible with python3.11 #947

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/tests/rd_tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions python/tests/rd_tests/test_rd_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
Loading