refine rsyncing and internal dir/transferal handling: don't transfer roots in a popen- no-chdir situation and only use one py._pydir everywhere
--HG-- branch : trunk
This commit is contained in:
@@ -112,7 +112,7 @@ class TestTraceback_f_g_h:
|
||||
def test_traceback_cut_excludepath(self, testdir):
|
||||
p = testdir.makepyfile("def f(): raise ValueError")
|
||||
excinfo = py.test.raises(ValueError, "p.pyimport().f()")
|
||||
basedir = py._impldir
|
||||
basedir = py._pydir
|
||||
newtraceback = excinfo.traceback.cut(excludepath=basedir)
|
||||
assert len(newtraceback) == 1
|
||||
assert newtraceback[0].frame.code.path == p
|
||||
|
||||
Reference in New Issue
Block a user