test_get_xdg_dir_3, check xdg_dir not used on OS X
()
| 228 | |
| 229 | @with_environment |
| 230 | def test_get_xdg_dir_3(): |
| 231 | """test_get_xdg_dir_3, check xdg_dir not used on OS X""" |
| 232 | reload(path) |
| 233 | path.get_home_dir = lambda : HOME_TEST_DIR |
| 234 | os.name = "posix" |
| 235 | sys.platform = "darwin" |
| 236 | env.pop('IPYTHON_DIR', None) |
| 237 | env.pop('IPYTHONDIR', None) |
| 238 | env.pop('XDG_CONFIG_HOME', None) |
| 239 | cfgdir=os.path.join(path.get_home_dir(), '.config') |
| 240 | if not os.path.exists(cfgdir): |
| 241 | os.makedirs(cfgdir) |
| 242 | |
| 243 | nt.assert_equal(path.get_xdg_dir(), None) |
| 244 | |
| 245 | def test_filefind(): |
| 246 | """Various tests for filefind""" |