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.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el
index 60b11d572cf..b916232c4be 100644
--- a/test/lisp/progmodes/python-tests.el
+++ b/test/lisp/progmodes/python-tests.el
@@ -729,6 +729,7 @@ u\"\\n\""
729 (845 . font-lock-string-face) (886)))) 729 (845 . font-lock-string-face) (886))))
730 730
731(ert-deftest python-font-lock-escape-sequence-bytes-newline () 731(ert-deftest python-font-lock-escape-sequence-bytes-newline ()
732 :expected-result :failed
732 (python-tests-assert-faces 733 (python-tests-assert-faces
733 "b'\\n' 734 "b'\\n'
734b\"\\n\"" 735b\"\\n\""
@@ -741,6 +742,7 @@ b\"\\n\""
741 (11 . font-lock-doc-face)))) 742 (11 . font-lock-doc-face))))
742 743
743(ert-deftest python-font-lock-escape-sequence-hex-octal () 744(ert-deftest python-font-lock-escape-sequence-hex-octal ()
745 :expected-result :failed
744 (python-tests-assert-faces 746 (python-tests-assert-faces
745 "b'\\x12 \\777 \\1\\23' 747 "b'\\x12 \\777 \\1\\23'
746'\\x12 \\777 \\1\\23'" 748'\\x12 \\777 \\1\\23'"
@@ -761,6 +763,7 @@ b\"\\n\""
761 (36 . font-lock-doc-face)))) 763 (36 . font-lock-doc-face))))
762 764
763(ert-deftest python-font-lock-escape-sequence-unicode () 765(ert-deftest python-font-lock-escape-sequence-unicode ()
766 :expected-result :failed
764 (python-tests-assert-faces 767 (python-tests-assert-faces
765 "b'\\u1234 \\U00010348 \\N{Plus-Minus Sign}' 768 "b'\\u1234 \\U00010348 \\N{Plus-Minus Sign}'
766'\\u1234 \\U00010348 \\N{Plus-Minus Sign}'" 769'\\u1234 \\U00010348 \\N{Plus-Minus Sign}'"
@@ -775,6 +778,7 @@ b\"\\n\""
775 (80 . font-lock-doc-face)))) 778 (80 . font-lock-doc-face))))
776 779
777(ert-deftest python-font-lock-raw-escape-sequence () 780(ert-deftest python-font-lock-raw-escape-sequence ()
781 :expected-result :failed
778 (python-tests-assert-faces 782 (python-tests-assert-faces
779 "rb'\\x12 \123 \\n' 783 "rb'\\x12 \123 \\n'
780r'\\x12 \123 \\n \\u1234 \\U00010348 \\N{Plus-Minus Sign}'" 784r'\\x12 \123 \\n \\u1234 \\U00010348 \\N{Plus-Minus Sign}'"
@@ -6710,6 +6714,18 @@ class Class:
6710 (python-tests-look-at "'''Not a method docstring.'''") 6714 (python-tests-look-at "'''Not a method docstring.'''")
6711 (should (not (python-info-docstring-p))))) 6715 (should (not (python-info-docstring-p)))))
6712 6716
6717(ert-deftest python-info-docstring-p-7 ()
6718 "Test string in a dictionary."
6719 (python-tests-with-temp-buffer
6720 "
6721{'Not a docstring': 1}
6722'Also not a docstring'
6723"
6724 (python-tests-look-at "Not a docstring")
6725 (should-not (python-info-docstring-p))
6726 (python-tests-look-at "Also not a docstring")
6727 (should-not (python-info-docstring-p))))
6728
6713(ert-deftest python-info-triple-quoted-string-p-1 () 6729(ert-deftest python-info-triple-quoted-string-p-1 ()
6714 "Test triple quoted string." 6730 "Test triple quoted string."
6715 (python-tests-with-temp-buffer 6731 (python-tests-with-temp-buffer