From 369b7709f7ea2f441d95f439b8830cc8f54b6cf8 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 7 Nov 2011 21:02:07 +0000 Subject: [PATCH] use os.symlink to make things work on windows/py32 --- testing/test_tmpdir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/test_tmpdir.py b/testing/test_tmpdir.py index 985b9045b..b0242511f 100644 --- a/testing/test_tmpdir.py +++ b/testing/test_tmpdir.py @@ -1,4 +1,5 @@ import py, pytest +import os from _pytest.tmpdir import pytest_funcarg__tmpdir, TempdirHandler from _pytest.python import FuncargRequest @@ -69,7 +70,7 @@ def test_basetemp(testdir): def test_tmpdir_keeps_symlinks(testdir): realtemp = testdir.tmpdir.mkdir("myrealtemp") linktemp = testdir.tmpdir.join("symlinktemp") - linktemp.mksymlinkto(realtemp) + os.symlink(str(realtemp), str(linktemp)) p = testdir.makepyfile(""" def test_1(tmpdir): import os