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

Function test_get_home_dir_2

IPython/utils/tests/test_path.py:121–130  ·  view source on GitHub ↗

Testcase for py2exe logic, compressed lib

()

Source from the content-addressed store, hash-verified

119@skip_if_not_win32
120@with_environment
121def test_get_home_dir_2():
122 """Testcase for py2exe logic, compressed lib
123 """
124 unfrozen = path.get_home_dir()
125 sys.frozen = True
126 #fake filename for IPython.__init__
127 IPython.__file__ = abspath(join(HOME_TEST_DIR, "Library.zip/IPython/__init__.py")).lower()
128
129 home_dir = path.get_home_dir(True)
130 nt.assert_equal(home_dir, unfrozen)
131
132
133@skip_win32_py38

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected