aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/python-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
-rw-r--r--test/lisp/progmodes/python-tests.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el
index 94c846ecb16..999cf8dc7a3 100644
--- a/test/lisp/progmodes/python-tests.el
+++ b/test/lisp/progmodes/python-tests.el
@@ -5345,13 +5345,23 @@ class SomeClass:
5345(ert-deftest python-tests--python-nav-end-of-statement--infloop () 5345(ert-deftest python-tests--python-nav-end-of-statement--infloop ()
5346 "Checks that `python-nav-end-of-statement' doesn't infloop in a 5346 "Checks that `python-nav-end-of-statement' doesn't infloop in a
5347buffer with overlapping strings." 5347buffer with overlapping strings."
5348 ;; FIXME: The treatment of strings has changed in the mean time, and the
5349 ;; test below now neither signals an error nor inf-loops.
5350 ;; The description of the problem it's trying to catch is not clear enough
5351 ;; to be able to see if the underlying problem is really fixed, sadly.
5352 ;; E.g. I don't know what is meant by "overlap", really.
5353 (skip-unless nil)
5348 (python-tests-with-temp-buffer "''' '\n''' ' '\n" 5354 (python-tests-with-temp-buffer "''' '\n''' ' '\n"
5349 (syntax-propertize (point-max)) 5355 (syntax-propertize (point-max))
5350 ;; Create a situation where strings nominally overlap. This 5356 ;; Create a situation where strings nominally overlap. This
5351 ;; shouldn't happen in practice, but apparently it can happen when 5357 ;; shouldn't happen in practice, but apparently it can happen when
5352 ;; a package calls `syntax-ppss' in a narrowed buffer during JIT 5358 ;; a package calls `syntax-ppss' in a narrowed buffer during JIT
5353 ;; lock. 5359 ;; lock.
5360 ;; FIXME: 4-5 is the SPC right after the opening triple quotes: why
5361 ;; put a string-fence syntax on it?
5354 (put-text-property 4 5 'syntax-table (string-to-syntax "|")) 5362 (put-text-property 4 5 'syntax-table (string-to-syntax "|"))
5363 ;; FIXME: 8-9 is the middle quote in the closing triple quotes:
5364 ;; it shouldn't have any syntax-table property to remove anyway!
5355 (remove-text-properties 8 9 '(syntax-table nil)) 5365 (remove-text-properties 8 9 '(syntax-table nil))
5356 (goto-char 4) 5366 (goto-char 4)
5357 (setq-local syntax-propertize-function nil) 5367 (setq-local syntax-propertize-function nil)