Don't use LocalPath.strpath
diff --git a/tests/check_byte_order_marker_test.py b/tests/check_byte_order_marker_test.py
index 9995200..4c40247 100644
--- a/tests/check_byte_order_marker_test.py
+++ b/tests/check_byte_order_marker_test.py
@@ -4,10 +4,10 @@
def test_failure(tmpdir):
f = tmpdir.join('f.txt')
f.write_text('ohai', encoding='utf-8-sig')
- assert check_byte_order_marker.main((f.strpath,)) == 1
+ assert check_byte_order_marker.main((str(f),)) == 1
def test_success(tmpdir):
f = tmpdir.join('f.txt')
f.write_text('ohai', encoding='utf-8')
- assert check_byte_order_marker.main((f.strpath,)) == 0
+ assert check_byte_order_marker.main((str(f),)) == 0