deprecate py.magic.autopath() and finally remove py/magic directory.

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-08-27 18:46:42 +02:00
parent 13932b7f4b
commit 681d344eac
18 changed files with 150 additions and 131 deletions
+10 -6
View File
@@ -461,9 +461,11 @@ class TestInfoSvnWCCommand:
Properties Last Updated: 2006-05-23 11:54:59 +0200 (Tue, 23 May 2006)
Checksum: 357e44880e5d80157cc5fbc3ce9822e3
"""
path = py.magic.autopath().dirpath().chdir()
info = InfoSvnWCCommand(output)
path.chdir()
path = py.path.local(__file__).dirpath().chdir()
try:
info = InfoSvnWCCommand(output)
finally:
path.chdir()
assert info.last_author == 'jan'
assert info.kind == 'file'
assert info.mtime == 1149021926.0
@@ -489,9 +491,11 @@ class TestInfoSvnWCCommand:
Properties Last Updated: 2006-06-02 23:45:28 +0200 (Fri, 02 Jun 2006)
Checksum: 357e44880e5d80157cc5fbc3ce9822e3
"""
path = py.magic.autopath().dirpath().chdir()
info = InfoSvnWCCommand(output)
path.chdir()
path = py.path.local(__file__).dirpath().chdir()
try:
info = InfoSvnWCCommand(output)
finally:
path.chdir()
assert info.last_author == 'jan'
assert info.kind == 'file'
assert info.mtime == 1149021926.0