Commits

holger krekel  committed a278843

fix test for python3.2

  • Participants
  • Parent commits 144664a

Comments (0)

Files changed (1)

File test_apipkg.py

     pkgdir = tmpdir.mkdir("dotted_name_lookup")
     pkgdir.join('__init__.py').write(py.code.Source("""
         import apipkg
-        apipkg.initpkg(__name__, dict(fromkeys='UserDict:UserDict.fromkeys'))
+        apipkg.initpkg(__name__, dict(abs='os:path.abspath'))
     """))
     monkeypatch.syspath_prepend(tmpdir)
     import dotted_name_lookup
-    d = dotted_name_lookup.fromkeys(["a", "b"])
-    print d
-    assert d.keys() == ["a", "b"]
+    assert dotted_name_lookup.abs == py.std.os.path.abspath