Simplify the tests
diff --git a/tests/pretty_format_json_test.py b/tests/pretty_format_json_test.py
index 443c20f..3d533e4 100644
--- a/tests/pretty_format_json_test.py
+++ b/tests/pretty_format_json_test.py
@@ -1,4 +1,4 @@
-import io
+import shutil
 
 import pytest
 
@@ -28,8 +28,10 @@
 
 def test_autofix_pretty_format_json(tmpdir):
     srcfile = tmpdir.join('to_be_json_formatted.json')
-    with io.open(get_resource_path('not_pretty_formatted_json.json')) as f:
-        srcfile.write_text(f.read(), 'UTF-8')
+    shutil.copyfile(
+        get_resource_path('not_pretty_formatted_json.json'),
+        srcfile.strpath,
+    )
 
     # now launch the autofix on that file
     ret = pretty_format_json(['--autofix', srcfile.strpath])