File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,6 +155,11 @@ def wrapper(*a,**k):
155155 return inner
156156
157157# Decorators to skip certain tests on specific platforms.
158- skip_win32 = skipif (sys .platform == 'win32' ,"This test does not run under Windows" )
159- skip_linux = skipif (sys .platform == 'linux2' ,"This test does not run under Linux" )
160- skip_osx = skipif (sys .platform == 'darwin' ,"This test does not run under OSX" )
158+ skip_win32 = skipif (sys .platform == 'win32' ,"This test does not run under Windows" )
159+ skip_linux = skipif (sys .platform == 'linux2' ,"This test does not run under Linux" )
160+ skip_osx = skipif (sys .platform == 'darwin' ,"This test does not run under OSX" )
161+
162+ # Decorators to skip tests if not on specific platforms.
163+ skip_if_not_win32 = skipif (sys .platform != 'win32' , "This test only runs under Windows" )
164+ skip_if_not_linux = skipif (sys .platform != 'linux2' , "This test only runs under Linux" )
165+ skip_if_not_osx = skipif (sys .platform != 'darwin' , "This test only runs under OSX" )
Original file line number Diff line number Diff line change 3838
3939test_file_path = split (abspath (__file__ ))[0 ]
4040
41- #skip_if_not_win32 = skipif(sys.platform!='win32',"This test only runs under Windows")
41+ #
42+
43+ def setup ():
44+ try :
45+ os .makedirs ("home_test_dir/_ipython" )
46+ except WindowsError :
47+ pass #Or should we complain that the test directory already exists??
48+
49+ def teardown ():
50+ try :
51+ os .removedirs ("home_test_dir/_ipython" )
52+ except WindowsError :
53+ pass #Or should we complain that the test directory already exists??
54+
4255
4356def setup_environment ():
4457 global oldstuff , platformstuff
You can’t perform that action at this time.
0 commit comments