Skip to content

Commit

Permalink
fix ftguess unittests for windows
Browse files Browse the repository at this point in the history
hard-coded "/" directory separator
  • Loading branch information
christian-intra2net committed Dec 22, 2023
1 parent a96432f commit ca94926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ftguess/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_encoding(self):
"""Check whether text file encoding is detected correctly"""
n_matches = 0
for filename, file_contents in loop_over_files(subdir='basic'):
match = re.match(r'basic/test-sample-(ascii|latin1|utf[816_lbe]+)(?:-nobom|-withbom)?.txt', filename)
match = re.match(r'basic.test-sample-(ascii|latin1|utf[816_lbe]+)(?:-nobom|-withbom)?.txt', filename)
if not match:
continue
n_matches += 1
Expand Down

0 comments on commit ca94926

Please sign in to comment.