Test module without __init__.py. https://github.com/ipython/ipython/issues/11226
()
| 169 | |
| 170 | |
| 171 | def test_module_without_init(): |
| 172 | """ |
| 173 | Test module without __init__.py. |
| 174 | |
| 175 | https://github.com/ipython/ipython/issues/11226 |
| 176 | """ |
| 177 | fake_module_name = "foo_xder_134" |
| 178 | with TemporaryDirectory() as tmpdir: |
| 179 | sys.path.insert(0, tmpdir) |
| 180 | try: |
| 181 | os.makedirs(os.path.join(tmpdir, fake_module_name)) |
| 182 | s = try_import(mod=fake_module_name) |
| 183 | assert s == [], f"for module {fake_module_name}" |
| 184 | finally: |
| 185 | sys.path.remove(tmpdir) |
| 186 | |
| 187 | |
| 188 | def test_valid_exported_submodules(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…