Commits

Ronny Pfannschmidt committed 8939ec0

onfirstaccess setattr test: use a tmpdir-independ package name

  • Participants
  • Parent commits 5769180

Comments (0)

Files changed (1)

 
 @py.test.mark.multi(mode=['attr', 'dict', 'onfirst'])
 def test_onfirstaccess_setsnewattr(tmpdir, monkeypatch, mode):
-    pkgname = tmpdir.basename.replace("-", "")
+    pkgname = 'mode_' + mode
     pkgdir = tmpdir.mkdir(pkgname)
     pkgdir.join('__init__.py').write(py.code.Source("""
         import apipkg