Show More
@@ -101,6 +101,7 b' with_enivronment = with_setup(setup_environment, teardown_environment)' | |||||
101 | # Tests for get_home_dir |
|
101 | # Tests for get_home_dir | |
102 | # |
|
102 | # | |
103 |
|
103 | |||
|
104 | @skip_if_not_win32 | |||
104 | @with_enivronment |
|
105 | @with_enivronment | |
105 | def test_get_home_dir_1(): |
|
106 | def test_get_home_dir_1(): | |
106 | """Testcase for py2exe logic, un-compressed lib |
|
107 | """Testcase for py2exe logic, un-compressed lib | |
@@ -141,6 +142,7 b' def test_get_home_dir_4():' | |||||
141 | if 'HOME' in env: del env['HOME'] |
|
142 | if 'HOME' in env: del env['HOME'] | |
142 | nt.assert_raises(genutils.HomeDirError, genutils.get_home_dir) |
|
143 | nt.assert_raises(genutils.HomeDirError, genutils.get_home_dir) | |
143 |
|
144 | |||
|
145 | @skip_if_not_win32 | |||
144 | @with_enivronment |
|
146 | @with_enivronment | |
145 | def test_get_home_dir_5(): |
|
147 | def test_get_home_dir_5(): | |
146 | """Testcase $HOME is not set, os=='nt' |
|
148 | """Testcase $HOME is not set, os=='nt' | |
@@ -153,6 +155,7 b' def test_get_home_dir_5():' | |||||
153 | home_dir = genutils.get_home_dir() |
|
155 | home_dir = genutils.get_home_dir() | |
154 | nt.assert_equal(home_dir, abspath(join(test_file_path, "home_test_dir"))) |
|
156 | nt.assert_equal(home_dir, abspath(join(test_file_path, "home_test_dir"))) | |
155 |
|
157 | |||
|
158 | @skip_if_not_win32 | |||
156 | @with_enivronment |
|
159 | @with_enivronment | |
157 | def test_get_home_dir_6(): |
|
160 | def test_get_home_dir_6(): | |
158 | """Testcase $HOME is not set, os=='nt' |
|
161 | """Testcase $HOME is not set, os=='nt' |
General Comments 0
You need to be logged in to leave comments.
Login now