Test that we don't mangle paths when parsing magic options.
()
| 172 | |
| 173 | |
| 174 | def test_magic_parse_options(): |
| 175 | """Test that we don't mangle paths when parsing magic options.""" |
| 176 | ip = get_ipython() |
| 177 | path = "c:\\x" |
| 178 | m = DummyMagics(ip) |
| 179 | opts = m.parse_options("-f %s" % path, "f:")[0] |
| 180 | # argv splitting is os-dependent |
| 181 | if os.name == "posix": |
| 182 | expected = "c:x" |
| 183 | else: |
| 184 | expected = path |
| 185 | assert opts["f"] == expected |
| 186 | |
| 187 | |
| 188 | def test_magic_parse_long_options(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…