diff options
author | Arun Isaac | 2025-09-01 16:18:53 +0100 |
---|---|---|
committer | Arun Isaac | 2025-09-01 16:51:08 +0100 |
commit | 452501245c623df38f462fa91afef1f4c0d798d6 (patch) | |
tree | ce701ea802e5adf5fe151afa7fdaf206b5d87a25 | |
parent | 1fd21ccc69d023cdc92dd473842a8e6877fbb65c (diff) | |
download | pyhegp-452501245c623df38f462fa91afef1f4c0d798d6.tar.gz pyhegp-452501245c623df38f462fa91afef1f4c0d798d6.tar.lz pyhegp-452501245c623df38f462fa91afef1f4c0d798d6.zip |
Use open method of Path object, rather than the open function.
-rw-r--r-- | tests/test_pyhegp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pyhegp.py b/tests/test_pyhegp.py index 9e01b2f..61f65cd 100644 --- a/tests/test_pyhegp.py +++ b/tests/test_pyhegp.py @@ -58,7 +58,7 @@ def test_encrypt(tmp_path): assert result.exit_code == 0 assert ciphertext.exists() assert "Dropped 1 SNP(s)" in result.output - with open(tmp_path / "encrypted-genotype.tsv", "rb") as genotype_file: + with ciphertext.open("rb") as genotype_file: encrypted_genotype = read_genotype(genotype_file) # TODO: Properly compare encrypted genotype data frame with # expected output once it is possible to specify the key. @@ -134,7 +134,7 @@ def test_pool(tmp_path): assert result.exit_code == 0 assert complete_summary.exists() assert "Dropped 2 SNP(s)" in result.output - with open(tmp_path / "complete-summary", "rb") as summary_file: + with complete_summary.open("rb") as summary_file: pooled_summary = read_summary(summary_file) with open("test-data/pool-test-complete-summary", "rb") as summary_file: expected_pooled_summary = read_summary(summary_file) |