Skip to content

Commit de0b36c

Browse files
coerce tmp_path from posix to str
1 parent c562106 commit de0b36c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/anoph/test_plink_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ def test_plink_converter(fixture, api: PlinkConverter, tmp_path):
9999
n_snps = random.randint(1, n_snps_available)
100100

101101
# Define plink params.
102-
plink_params = dict(output_dir=tmp_path, n_snps=n_snps, **data_params)
102+
plink_params = dict(output_dir=str(tmp_path), n_snps=n_snps, **data_params)
103103

104104
# Make the plink files.
105105
api.biallelic_snps_to_plink(**plink_params)
106106

107107
# Test to see if bed, bim, fam output files exist.
108-
file_path = f"{tmp_path}/{plink_params['region']}.{plink_params['n_snps']}.{plink_params['min_minor_ac']}.{plink_params['max_missing_an']}.{plink_params['thin_offset']}"
108+
file_path = f"{str(tmp_path)}/{plink_params['region']}.{plink_params['n_snps']}.{plink_params['min_minor_ac']}.{plink_params['max_missing_an']}.{plink_params['thin_offset']}"
109109

110110
assert os.path.exists(f"{file_path}.bed")
111111
assert os.path.exists(f"{file_path}.bim")

0 commit comments

Comments
 (0)