Test module with invalid __all__ https://github.com/ipython/ipython/issues/9678
()
| 146 | |
| 147 | |
| 148 | def 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 | |
| 164 | def test_module_without_init(): |
nothing calls this directly
no test coverage detected