##// END OF EJS Templates
Testing cleanup of old/conflicting stuff.
Fernando Perez -
Show More
1 NO CONTENT: file renamed from IPython/testing/ipdoctest.py to IPython/testing/attic/ipdoctest.py
1 NO CONTENT: file renamed from IPython/testing/parametric.py to IPython/testing/attic/parametric.py
1 NO CONTENT: file renamed from IPython/testing/tcommon.py to IPython/testing/attic/tcommon.py
1 NO CONTENT: file renamed from IPython/testing/testTEMPLATE.py to IPython/testing/attic/testTEMPLATE.py
1 NO CONTENT: file renamed from IPython/testing/tstTEMPLATE_doctest.py to IPython/testing/attic/tstTEMPLATE_doctest.py
1 NO CONTENT: file renamed from IPython/testing/tstTEMPLATE_doctest.txt to IPython/testing/attic/tstTEMPLATE_doctest.txt
@@ -1,6 +1,20 b''
1 """Utilities for testing code.
1 """DEPRECATED - use IPython.testing.util instead.
2
3 Utilities for testing code.
2 4 """
3 5
6 #############################################################################
7
8 # This was old testing code we never really used in IPython. The pieces of
9 # testing machinery from snakeoil that were good have already been merged into
10 # the nose plugin, so this can be taken away soon. Leave a warning for now,
11 # we'll remove it in a later release (around 0.10 or so).
12 from warnings import warn
13 warn('This will be removed soon. Use IPython.testing.util instead',
14 DeprecationWarning)
15
16 #############################################################################
17
4 18 # Required modules and packages
5 19
6 20 # Standard Python lib
@@ -36,7 +50,7 b' def test_path(path):'
36 50
37 51 This finds the correct path of the test package on disk, and prepends it
38 52 to the input path."""
39
53
40 54 return os.path.join(TEST_PATH,path)
41 55
42 56 def fullPath(startPath,files):
@@ -55,7 +69,7 b' def fullPath(startPath,files):'
55 69 One or more files.
56 70
57 71 :Examples:
58
72
59 73 >>> fullPath('/foo/bar.py',['a.txt','b.txt'])
60 74 ['/foo/a.txt', '/foo/b.txt']
61 75
@@ -66,7 +80,7 b' def fullPath(startPath,files):'
66 80 >>> fullPath('/foo','a.txt')
67 81 ['/a.txt']
68 82 """
69
83
70 84 files = utils.list_strings(files)
71 85 base = os.path.split(startPath)[0]
72 86 return [ os.path.join(base,f) for f in files ]
General Comments 0
You need to be logged in to leave comments. Login now