MCPcopy Create free account
hub / github.com/ipython/ipython / test_get_home_dir_1

Function test_get_home_dir_1

IPython/utils/tests/test_path.py:106–116  ·  view source on GitHub ↗

Testcase for py2exe logic, un-compressed lib

()

Source from the content-addressed store, hash-verified

104@skip_if_not_win32
105@with_environment
106def test_get_home_dir_1():
107 """Testcase for py2exe logic, un-compressed lib
108 """
109 unfrozen = path.get_home_dir()
110 sys.frozen = True
111
112 #fake filename for IPython.__init__
113 IPython.__file__ = abspath(join(HOME_TEST_DIR, "Lib/IPython/__init__.py"))
114
115 home_dir = path.get_home_dir()
116 nt.assert_equal(home_dir, unfrozen)
117
118
119@skip_if_not_win32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected