Commit Diff


commit - 576ed4ae8cfebdbcc77a191c43271b02abeb7176
commit + cb9a0b4a910d6f16b6f814e8036a6cec3db1a66f
blob - 73510b6f38b8aff400dfc36ae81d7bfaaae8f094
blob + 7b7a5dca0055ad08bee2be101e5a2214dd507b96
--- tests/test_unreliablefs.py
+++ tests/test_unreliablefs.py
@@ -5,6 +5,7 @@ if __name__ == '__main__':
     import sys
     sys.exit(pytest.main([__file__] + sys.argv[1:]))
 
+import binascii
 import subprocess
 import os
 import sys
@@ -224,6 +225,18 @@ def test_open_unlink(setup_unreliablefs):
         fh.seek(0)
         assert fh.read() == data1+data2
 
+def test_open_gh_14(setup_unreliablefs):
+    mnt_dir, src_dir = setup_unreliablefs
+    name = pjoin(mnt_dir, name_generator())
+    fullname = pjoin(mnt_dir, name)
+
+    with open(fullname, "w+") as fh:
+        hs = "123456789ABCDEF1"
+        hb = binascii.a2b_hex(hs)
+        fh.write(str(hb))
+        fh.seek(0)
+        fh.read()
+
 def test_statvfs(setup_unreliablefs):
     mnt_dir, src_dir = setup_unreliablefs
     os.statvfs(mnt_dir)