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

Function test_bad_module_all

IPython/core/tests/test_completerlib.py:148–161  ·  view source on GitHub ↗

Test module with invalid __all__ https://github.com/ipython/ipython/issues/9678

()

Source from the content-addressed store, hash-verified

146
147
148def test_bad_module_all():
149 """Test module with invalid __all__
150
151 https://github.com/ipython/ipython/issues/9678
152 """
153 testsdir = os.path.dirname(__file__)
154 sys.path.insert(0, testsdir)
155 try:
156 results = module_completion('from bad_all import ')
157 nt.assert_in('puppies', results)
158 for r in results:
159 nt.assert_is_instance(r, str)
160 finally:
161 sys.path.remove(testsdir)
162
163
164def test_module_without_init():

Callers

nothing calls this directly

Calls 2

module_completionFunction · 0.90
removeMethod · 0.45

Tested by

no test coverage detected