# -*- coding: utf-8 -*-

import pytest


@pytest.yield_fixture
def tmpfile(request, tmpdir):
    yield tmpdir.join('file.tmp').ensure().strpath

@@ -33,16 +33,44 @@
 pytest%0A%0A
+from blox.file import File%0A%0A
 %0A@pytest
@@ -118,21 +118,26 @@
 r):%0A    
-yield
+filename =
  tmpdir.
@@ -170,8 +170,59 @@
 strpath%0A
+    File(filename, 'w').close()%0A    yield filename%0A

Create a valid blox file in tmpfile fixture