|
5 | 5 | # Distributed under the terms of the Modified BSD License. |
6 | 6 |
|
7 | 7 | import os |
| 8 | +import pytest |
8 | 9 | import sys |
9 | 10 | import textwrap |
10 | 11 | import unittest |
|
14 | 15 | from traitlets.config.loader import Config |
15 | 16 | from IPython import get_ipython |
16 | 17 | from IPython.core import completer |
17 | | -from IPython.external import decorators |
18 | 18 | from IPython.utils.tempdir import TemporaryDirectory, TemporaryWorkingDirectory |
19 | 19 | from IPython.utils.generics import complete_object |
20 | 20 | from IPython.testing import decorators as dec |
@@ -317,8 +317,8 @@ def test_forward_unicode_completion(self): |
317 | 317 | self.assertEqual(matches, ["\u2164"]) # same as above but explicit. |
318 | 318 |
|
319 | 319 | @unittest.skip("now we have a completion for \jmath") |
320 | | - @decorators.knownfailureif( |
321 | | - sys.platform == "win32", "Fails if there is a C:\\j... path" |
| 320 | + @pytest.mark.xfail( |
| 321 | + sys.platform == "win32", reason="Fails if there is a C:\\j... path" |
322 | 322 | ) |
323 | 323 | def test_no_ascii_back_completion(self): |
324 | 324 | ip = get_ipython() |
@@ -357,8 +357,8 @@ def test_has_open_quotes4(self): |
357 | 357 | for s in ['""', '""" """', '"hi" "ipython"']: |
358 | 358 | self.assertFalse(completer.has_open_quotes(s)) |
359 | 359 |
|
360 | | - @decorators.knownfailureif( |
361 | | - sys.platform == "win32", "abspath completions fail on Windows" |
| 360 | + @pytest.mark.xfail( |
| 361 | + sys.platform == "win32", reason="abspath completions fail on Windows" |
362 | 362 | ) |
363 | 363 | def test_abspath_file_completions(self): |
364 | 364 | ip = get_ipython() |
|
0 commit comments