8000 TestOsOpsCommon is added [generic os_ops tests] by dmitry-lipetsk · Pull Request #231 · postgrespro/testgres · GitHub
[go: up one dir, main page]

Skip to content

TestOsOpsCommon is added [generic os_ops tests] #231

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

Prev Previous commit
Next Next commit
TestOsOpsCommon::test_write_text_file is corrected
It did not work in mt-environment.
  • Loading branch information
dmitry-lipetsk committed Apr 2, 2025
commit a5eabf7a0a8da861bdc635f312c1b670a93b88fd
4 changes: 3 additions & 1 deletion tests/test_os_ops_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def test_write_text_file(self, os_ops: OsOperations):

RunConditions.skip_if_windows()

filename = "/tmp/test_file.txt"
filename = os_ops.mkstemp()
data = "Hello, world!"

os_ops.write(filename, data, truncate=True)
Expand All @@ -222,6 +222,8 @@ def test_write_text_file(self, os_ops: OsOperations):

assert response == data + data

os_ops.remove_file(filename)

def test_write_binary_file(self, os_ops: OsOperations):
"""
Test write for writing data to a binary file.
Expand Down
0