unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattias.engdegard@gmail.com>
To: kobarity <kobarity@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Lin Sun <sunlin7.mail@gmail.com>,
	stefankangas@gmail.com, 70815@debbugs.gnu.org
Subject: bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters
Date: Sun, 26 May 2024 12:52:54 +0200	[thread overview]
Message-ID: <6057C283-20C5-4A91-9CD4-EBA521B8C893@gmail.com> (raw)
In-Reply-To: <CABCREdpJhB03tGiR6V1FYxOai0Zswnr3mAMOEPzJLDccWthTTA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 525 bytes --]

This change caused python-tests failures on macOS. See attached log.

On this machine which has the standard macOS Python installation, 'python' is python 2, which apparently the tests don't cope very well with. (Have you verified that they do?)

The tests pass if modified to prefer Python 3:

@@ -3722,2 +3722,2 @@ python-tests-get-shell-interpreter
-              (cl-some #'executable-find '("python" "python3" "python2"))))))
+              (cl-some #'executable-find '("python3" "python" "python2"))))))




[-- Attachment #2: python-tests.log --]
[-- Type: application/octet-stream, Size: 36491 bytes --]

Running 359 tests (2024-05-26 12:39:46+0200, selector `(not (or (tag :unstable) (tag :nativecomp)))')
   passed    1/359  python-auto-fill-docstring (0.000899 sec)
Fontifying  *temp*-953703...
Fontifying  *temp*-953703... (syntactically...)
Fontifying  *temp*-953703... (regexps...)
Fontifying  *temp*-953703... (regexps....)
Fontifying  *temp*-953703... (regexps.....)
Fontifying  *temp*-953703... (regexps......)
Fontifying  *temp*-953703... (regexps.......)
Fontifying  *temp*-953703... (regexps........)
Fontifying  *temp*-953703... (regexps.........)
Fontifying  *temp*-953703... (regexps..........)
Fontifying  *temp*-953703... (regexps...........)
Fontifying  *temp*-953703... (regexps............)
Fontifying  *temp*-953703... (regexps.............)
Fontifying  *temp*-953703... (regexps..............)
Fontifying  *temp*-953703... (regexps...............)
Fontifying  *temp*-953703... (regexps................)
Fontifying  *temp*-953703... (regexps.................)

   passed    2/359  python-bob-infloop-avoid (0.000720 sec)
Test python-completion-at-point-1 backtrace:
  signal(ert-test-failed (((should (completion-at-point)) :form (compl
  ert-fail(((should (completion-at-point)) :form (completion-at-point)
  #f(compiled-function () #<bytecode 0x1e8b4c6a7c79bb47>)()
  #f(compiled-function () #<bytecode -0x15266b19ba44d40b>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x15266b19ba44d40
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name python-completion-at-point-1 :documen
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":../../emacs/test" "-l" "ert" "--eval" "(setq 
  command-line()
  normal-top-level()
Test python-completion-at-point-1 condition:
    (ert-test-failed
     ((should (completion-at-point)) :form (completion-at-point) :value
      nil))
   FAILED    3/359  python-completion-at-point-1 (0.297276 sec) at ../../emacs/test/lisp/progmodes/python-tests.el:4930
Test python-completion-at-point-2 backtrace:
  signal(ert-test-failed (((should (completion-at-point)) :form (compl
  ert-fail(((should (completion-at-point)) :form (completion-at-point)
  #f(compiled-function () #<bytecode -0xc07eb83eb000dec>)()
  #f(compiled-function () #<bytecode -0x15266b19ba44d40b>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x15266b19ba44d40
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name python-completion-at-point-2 :documen
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":../../emacs/test" "-l" "ert" "--eval" "(setq 
  command-line()
  normal-top-level()
Test python-completion-at-point-2 condition:
    (ert-test-failed
     ((should (completion-at-point)) :form (completion-at-point) :value
      nil))
   FAILED    4/359  python-completion-at-point-2 (0.276322 sec) at ../../emacs/test/lisp/progmodes/python-tests.el:4947
Test python-completion-at-point-native-1 backtrace:
  signal(ert-test-failed (((should (completion-at-point)) :form (compl
  ert-fail(((should (completion-at-point)) :form (completion-at-point)
  #f(compiled-function () #<bytecode 0x34326b9d63488b8>)()
  #f(compiled-function () #<bytecode -0x15266b19ba44d40b>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x15266b19ba44d40
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name python-completion-at-point-native-1 :
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":../../emacs/test" "-l" "ert" "--eval" "(setq 
  command-line()
  normal-top-level()
Test python-completion-at-point-native-1 condition:
    (ert-test-failed
     ((should (completion-at-point)) :form (completion-at-point) :value
      nil))
   FAILED    5/359  python-completion-at-point-native-1 (2.287985 sec) at ../../emacs/test/lisp/progmodes/python-tests.el:5001
Test python-completion-at-point-native-2 backtrace:
  signal(ert-test-failed (((should (completion-at-point)) :form (compl
  ert-fail(((should (completion-at-point)) :form (completion-at-point)
  #f(compiled-function () #<bytecode 0x17cc5ab75b63540f>)()
  #f(compiled-function () #<bytecode -0x15266b19ba44d40b>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x15266b19ba44d40
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name python-completion-at-point-native-2 :
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":../../emacs/test" "-l" "ert" "--eval" "(setq 
  command-line()
  normal-top-level()
Test python-completion-at-point-native-2 condition:
    (ert-test-failed
     ((should (completion-at-point)) :form (completion-at-point) :value
      nil))
   FAILED    6/359  python-completion-at-point-native-2 (2.301811 sec) at ../../emacs/test/lisp/progmodes/python-tests.el:5019
Test python-completion-at-point-native-with-eldoc-1 backtrace:
  signal(ert-test-failed (((should (completion-at-point)) :form (compl
  ert-fail(((should (completion-at-point)) :form (completion-at-point)
  #f(compiled-function () #<bytecode -0xe97b868aec9aafc>)()
  #f(compiled-function () #<bytecode -0x15266b19ba44d40b>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x15266b19ba44d40
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name python-completion-at-point-native-wit
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":../../emacs/test" "-l" "ert" "--eval" "(setq 
  command-line()
  normal-top-level()
Test python-completion-at-point-native-with-eldoc-1 condition:
    (ert-test-failed
     ((should (completion-at-point)) :form (completion-at-point) :value
      nil))
   FAILED    7/359  python-completion-at-point-native-with-eldoc-1 (2.334841 sec) at ../../emacs/test/lisp/progmodes/python-tests.el:5056
Test python-completion-at-point-native-with-ffap-1 backtrace:
  signal(ert-test-failed (((should (completion-at-point)) :form (compl
  ert-fail(((should (completion-at-point)) :form (completion-at-point)
  #f(compiled-function () #<bytecode -0xee9f54223d6720a>)()
  #f(compiled-function () #<bytecode -0x15266b19ba44d40b>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x15266b19ba44d40
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name python-completion-at-point-native-wit
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":../../emacs/test" "-l" "ert" "--eval" "(setq 
  command-line()
  normal-top-level()
Test python-completion-at-point-native-with-ffap-1 condition:
    (ert-test-failed
     ((should (completion-at-point)) :form (completion-at-point) :value
      nil))
   FAILED    8/359  python-completion-at-point-native-with-ffap-1 (2.323007 sec) at ../../emacs/test/lisp/progmodes/python-tests.el:5038
   passed    9/359  python-completion-at-point-pdb-1 (0.273743 sec)
   passed   10/359  python-completion-at-point-while-running-1 (0.159660 sec)
   passed   11/359  python-eldoc--get-doc-at-point-1 (0.301881 sec)
   passed   12/359  python-eldoc--get-doc-at-point-while-running-1 (0.154338 sec)
   passed   13/359  python-eldoc--get-symbol-at-point-1 (0.001642 sec)
   passed   14/359  python-eldoc--get-symbol-at-point-2 (0.001778 sec)
   passed   15/359  python-eldoc--get-symbol-at-point-3 (0.000370 sec)
   passed   16/359  python-eldoc--get-symbol-at-point-4 (0.000480 sec)
   passed   17/359  python-end-of-defun-1 (0.000622 sec)
   passed   18/359  python-ffap-module-path-1 (0.298471 sec)
   passed   19/359  python-ffap-module-path-while-running-1 (0.160546 sec)
   passed   20/359  python-fill-docstring (0.001283 sec)
   passed   21/359  python-fill-paragraph-single-quoted-string-1 (0.000362 sec)
   passed   22/359  python-fill-paragraph-single-quoted-string-2 (0.000296 sec)
   passed   23/359  python-fill-paragraph-triple-quoted-string-1 (0.004185 sec)
   passed   24/359  python-font-lock-assignment-statement-1 (0.000521 sec)
   passed   25/359  python-font-lock-assignment-statement-10 (0.000360 sec)
   passed   26/359  python-font-lock-assignment-statement-11 (0.000580 sec)
   passed   27/359  python-font-lock-assignment-statement-12 (0.000373 sec)
   passed   28/359  python-font-lock-assignment-statement-13 (0.000499 sec)
   passed   29/359  python-font-lock-assignment-statement-14 (0.000340 sec)
   passed   30/359  python-font-lock-assignment-statement-15 (0.000333 sec)
   passed   31/359  python-font-lock-assignment-statement-16 (0.000339 sec)
   passed   32/359  python-font-lock-assignment-statement-17 (0.000297 sec)
   passed   33/359  python-font-lock-assignment-statement-18 (0.000789 sec)
   passed   34/359  python-font-lock-assignment-statement-2 (0.000752 sec)
   passed   35/359  python-font-lock-assignment-statement-3 (0.000563 sec)
   passed   36/359  python-font-lock-assignment-statement-4 (0.000558 sec)
   passed   37/359  python-font-lock-assignment-statement-5 (0.000575 sec)
   passed   38/359  python-font-lock-assignment-statement-6 (0.000394 sec)
   passed   39/359  python-font-lock-assignment-statement-7 (0.000447 sec)
   passed   40/359  python-font-lock-assignment-statement-8 (0.000519 sec)
   passed   41/359  python-font-lock-assignment-statement-9 (0.000836 sec)
   passed   42/359  python-font-lock-escape-sequence-bytes-newline (0.000580 sec)
   passed   43/359  python-font-lock-escape-sequence-hex-octal (0.001087 sec)
   passed   44/359  python-font-lock-escape-sequence-multiline-string (0.013170 sec)
   passed   45/359  python-font-lock-escape-sequence-string-newline (0.001243 sec)
   passed   46/359  python-font-lock-escape-sequence-unicode (0.000684 sec)
   passed   47/359  python-font-lock-keywords-level-1-1 (0.000727 sec)
   passed   48/359  python-font-lock-keywords-level-1-2 (0.000425 sec)
   passed   49/359  python-font-lock-raw-escape-sequence (0.000793 sec)
   passed   50/359  python-font-lock-string-literal-concatenation (0.000646 sec)
Hiding all blocks... 
Hiding all blocks...done
   passed   51/359  python-hideshow-hide-all-1 (0.000806 sec)
Hiding all blocks... 
Hiding all blocks...done
   passed   52/359  python-hideshow-hide-all-2 (0.000765 sec)
Hiding all blocks... 
Hiding all blocks...done
   passed   53/359  python-hideshow-hide-all-3 (0.000419 sec)
   passed   54/359  python-hideshow-hide-block-1 (0.000904 sec)
Hiding blocks ...
Hiding blocks ... done
Showing all blocks ...
Showing all blocks ... done
   passed   55/359  python-hideshow-hide-levels-1 (0.001155 sec)
Showing all blocks ...
Showing all blocks ... done
   passed   56/359  python-hideshow-hide-levels-2 (0.000408 sec)
Hiding blocks ...
Hiding blocks ... done
   passed   57/359  python-hideshow-hide-levels-3 (0.000542 sec)
Hiding blocks ...
Hiding blocks ... done
   passed   58/359  python-hideshow-hide-levels-4 (0.001606 sec)
   passed   59/359  python-imenu-create-flat-index-1 (0.001509 sec)
   passed   60/359  python-imenu-create-flat-index-2 (0.000704 sec)
   passed   61/359  python-imenu-create-index-1 (0.000551 sec)
   passed   62/359  python-imenu-create-index-2 (0.000324 sec)
   passed   63/359  python-imenu-create-index-3 (0.000401 sec)
   passed   64/359  python-imenu-create-index-4 (0.000567 sec)
   passed   65/359  python-indent-after-async-block-1 (0.000412 sec)
   passed   66/359  python-indent-after-async-block-2 (0.000337 sec)
   passed   67/359  python-indent-after-async-block-3 (0.000609 sec)
   passed   68/359  python-indent-after-backslash-1 (0.000702 sec)
   passed   69/359  python-indent-after-backslash-2 (0.001052 sec)
   passed   70/359  python-indent-after-backslash-3 (0.000494 sec)
   passed   71/359  python-indent-after-backslash-4 (0.000520 sec)
   passed   72/359  python-indent-after-backslash-5 (0.000502 sec)
   passed   73/359  python-indent-after-backslash-6 (0.000697 sec)
   passed   74/359  python-indent-after-bare-match (0.000356 sec)
   passed   75/359  python-indent-after-block-1 (0.000308 sec)
   passed   76/359  python-indent-after-block-2 (0.000301 sec)
   passed   77/359  python-indent-after-block-3 (0.000656 sec)
   passed   78/359  python-indent-after-case-block (0.000285 sec)
   passed   79/359  python-indent-after-comment-1 (0.001490 sec)
   passed   80/359  python-indent-after-comment-2 (0.002461 sec)
   passed   81/359  python-indent-after-comment-3 (0.000940 sec)
   passed   82/359  python-indent-after-match-block (0.000480 sec)
   passed   83/359  python-indent-after-re-match (0.000323 sec)
   passed   84/359  python-indent-base-case (0.000282 sec)
   passed   85/359  python-indent-block-enders-1 (0.000357 sec)
   passed   86/359  python-indent-block-enders-2 (0.000622 sec)
   passed   87/359  python-indent-block-enders-3 (0.000557 sec)
   passed   88/359  python-indent-block-enders-4 (0.000834 sec)
   passed   89/359  python-indent-block-enders-5 (0.000698 sec)
   passed   90/359  python-indent-dedent-line-backspace-1 (0.000657 sec)
   passed   91/359  python-indent-dedent-line-backspace-2 (0.000314 sec)
   passed   92/359  python-indent-dedent-line-backspace-3 (0.000475 sec)
   passed   93/359  python-indent-dedenters-1 (0.000463 sec)
Closes if hide_details:
Closes except Exception:
Closes if save:
   passed   94/359  python-indent-dedenters-2 (0.002554 sec)
Closes try:
   passed   95/359  python-indent-dedenters-3 (0.000756 sec)
Closes try:
   passed   96/359  python-indent-dedenters-4 (0.000586 sec)
Closes if save:
   passed   97/359  python-indent-dedenters-5 (0.001060 sec)
   passed   98/359  python-indent-dedenters-6 (0.000385 sec)
   passed   99/359  python-indent-dedenters-7 (0.000401 sec)
Closes if (a == 1 or
Closes if (a == 1 or
Closes if (a == 1 or
   passed  100/359  python-indent-dedenters-8 (0.000899 sec)
Closes case 1:
   passed  101/359  python-indent-dedenters-9 (0.000563 sec)
Closes if hide_details:
Closes except Exception:
Closes if save:
   passed  102/359  python-indent-dedenters-comment-else (0.003009 sec)
   passed  103/359  python-indent-electric-colon-1 (0.000340 sec)
Closes if do:
   passed  104/359  python-indent-electric-colon-2 (0.000421 sec)
Closes if do:
Closes if do:
Closes if do:
   passed  105/359  python-indent-electric-colon-3 (0.000766 sec)
Closes if True:
   passed  106/359  python-indent-electric-colon-4 (0.000799 sec)
   passed  107/359  python-indent-electric-comma-after-multiline-string (0.000422 sec)
   passed  108/359  python-indent-electric-comma-inside-multiline-string (0.000966 sec)
   passed  109/359  python-indent-hanging-close-paren (0.000345 sec)
   passed  110/359  python-indent-inside-paren-1 (0.000925 sec)
   passed  111/359  python-indent-inside-paren-2 (0.000701 sec)
   passed  112/359  python-indent-inside-paren-3 (0.000387 sec)
   passed  113/359  python-indent-inside-paren-4 (0.000339 sec)
   passed  114/359  python-indent-inside-paren-5 (0.000899 sec)
   passed  115/359  python-indent-inside-paren-6 (0.000630 sec)
   passed  116/359  python-indent-inside-paren-7 (0.000438 sec)
   passed  117/359  python-indent-inside-paren-8 (0.000524 sec)
   passed  118/359  python-indent-inside-paren-9 (0.000824 sec)
   passed  119/359  python-indent-inside-paren-block-1 (0.000830 sec)
   passed  120/359  python-indent-inside-paren-block-2 (0.001032 sec)
   passed  121/359  python-indent-inside-paren-block-3 (0.000948 sec)
   passed  122/359  python-indent-inside-paren-block-4 (0.000591 sec)
   passed  123/359  python-indent-inside-string-1 (0.000554 sec)
   passed  124/359  python-indent-inside-string-2 (0.001573 sec)
   passed  125/359  python-indent-inside-string-3 (0.000727 sec)
   passed  126/359  python-indent-pep8-1 (0.000396 sec)
   passed  127/359  python-indent-pep8-2 (0.000481 sec)
   passed  128/359  python-indent-pep8-3 (0.000387 sec)
   passed  129/359  python-indent-region-1 (0.000297 sec)
   passed  130/359  python-indent-region-2 (0.000546 sec)
   passed  131/359  python-indent-region-3 (0.000473 sec)
   passed  132/359  python-indent-region-4 (0.000410 sec)
   passed  133/359  python-indent-region-5 (0.002028 sec)
   passed  134/359  python-info-assignment-continuation-line-p-1 (0.000807 sec)
   passed  135/359  python-info-assignment-continuation-line-p-2 (0.000627 sec)
   passed  136/359  python-info-assignment-statement-p-1 (0.001395 sec)
   passed  137/359  python-info-assignment-statement-p-2 (0.000490 sec)
   passed  138/359  python-info-assignment-statement-p-3 (0.000431 sec)
   passed  139/359  python-info-beginning-of-backslash-1 (0.000608 sec)
   passed  140/359  python-info-beginning-of-block-p-1 (0.000352 sec)
   passed  141/359  python-info-beginning-of-block-p-2 (0.000287 sec)
   passed  142/359  python-info-beginning-of-statement-p-1 (0.000264 sec)
   passed  143/359  python-info-beginning-of-statement-p-2 (0.000270 sec)
   passed  144/359  python-info-block-continuation-line-p-1 (0.000291 sec)
   passed  145/359  python-info-block-continuation-line-p-2 (0.000455 sec)
   passed  146/359  python-info-continuation-line-p-1 (0.000420 sec)
   passed  147/359  python-info-current-defun-1 (0.000656 sec)
   passed  148/359  python-info-current-defun-2 (0.012907 sec)
   passed  149/359  python-info-current-defun-3 (0.008910 sec)
   passed  150/359  python-info-current-defun-4 (0.001674 sec)
   passed  151/359  python-info-current-line-comment-p-1 (0.000492 sec)
   passed  152/359  python-info-current-line-empty-p (0.000376 sec)
   passed  153/359  python-info-current-symbol-1 (0.000494 sec)
   passed  154/359  python-info-current-symbol-2 (0.000633 sec)
   failed  155/359  python-info-current-symbol-3 (0.000355 sec)
   passed  156/359  python-info-dedenter-opening-block-message-1 (0.000290 sec)
Closes try:
Closes try:
   passed  157/359  python-info-dedenter-opening-block-message-2 (0.000346 sec)
Closes except:
Closes except:
   passed  158/359  python-info-dedenter-opening-block-message-3 (0.000612 sec)
Closes else:
Closes else:
   passed  159/359  python-info-dedenter-opening-block-message-4 (0.000484 sec)
Closes if a:
Closes if a:
   passed  160/359  python-info-dedenter-opening-block-message-5 (0.034931 sec)
   passed  161/359  python-info-dedenter-opening-block-position-1 (0.000686 sec)
   passed  162/359  python-info-dedenter-opening-block-position-2 (0.000395 sec)
   passed  163/359  python-info-dedenter-opening-block-position-3 (0.002207 sec)
   passed  164/359  python-info-dedenter-opening-block-positions-1 (0.001998 sec)
   passed  165/359  python-info-dedenter-opening-block-positions-2 (0.000844 sec)
   passed  166/359  python-info-dedenter-opening-block-positions-3 (0.000928 sec)
   passed  167/359  python-info-dedenter-opening-block-positions-4 (0.000321 sec)
   passed  168/359  python-info-dedenter-opening-block-positions-5 (0.000371 sec)
   passed  169/359  python-info-dedenter-opening-block-positions-6 (0.000277 sec)
   passed  170/359  python-info-dedenter-opening-block-positions-7 (0.000338 sec)
   passed  171/359  python-info-dedenter-statement-p-1 (0.000242 sec)
   passed  172/359  python-info-dedenter-statement-p-2 (0.000246 sec)
   passed  173/359  python-info-dedenter-statement-p-3 (0.000431 sec)
   passed  174/359  python-info-dedenter-statement-p-4 (0.000277 sec)
   passed  175/359  python-info-dedenter-statement-p-5 (0.000269 sec)
   passed  176/359  python-info-dedenter-statement-p-6 (0.000325 sec)
   passed  177/359  python-info-docstring-p-1 (0.001006 sec)
   passed  178/359  python-info-docstring-p-2 (0.001240 sec)
   passed  179/359  python-info-docstring-p-3 (0.002841 sec)
   passed  180/359  python-info-docstring-p-4 (0.001898 sec)
   passed  181/359  python-info-docstring-p-5 (0.001799 sec)
   passed  182/359  python-info-docstring-p-6 (0.001230 sec)
   passed  183/359  python-info-docstring-p-7 (0.000332 sec)
   passed  184/359  python-info-docstring-p-8 (0.000330 sec)
   passed  185/359  python-info-encoding-1 (0.000240 sec)
   passed  186/359  python-info-encoding-2 (0.000201 sec)
   passed  187/359  python-info-encoding-from-cookie-1 (0.000200 sec)
   passed  188/359  python-info-encoding-from-cookie-2 (0.000199 sec)
   passed  189/359  python-info-encoding-from-cookie-3 (0.000342 sec)
   passed  190/359  python-info-encoding-from-cookie-4 (0.000243 sec)
   passed  191/359  python-info-encoding-from-cookie-5 (0.000211 sec)
   passed  192/359  python-info-encoding-from-cookie-6 (0.000204 sec)
   passed  193/359  python-info-encoding-from-cookie-7 (0.000225 sec)
   passed  194/359  python-info-end-of-block-p-1 (0.000484 sec)
   passed  195/359  python-info-end-of-block-p-2 (0.000612 sec)
   passed  196/359  python-info-end-of-statement-p-1 (0.000690 sec)
   passed  197/359  python-info-end-of-statement-p-2 (0.000862 sec)
   passed  198/359  python-info-line-ends-backslash-p-1 (0.000488 sec)
   passed  199/359  python-info-looking-at-beginning-of-block-1 (0.000827 sec)
   passed  200/359  python-info-looking-at-beginning-of-defun-1 (0.000884 sec)
   passed  201/359  python-info-looking-at-beginning-of-defun-2 (0.000494 sec)
   passed  202/359  python-info-looking-at-beginning-of-defun-3 (0.000291 sec)
   passed  203/359  python-info-statement-ends-block-p-1 (0.000808 sec)
   passed  204/359  python-info-statement-ends-block-p-2 (0.000524 sec)
   passed  205/359  python-info-statement-starts-block-p-1 (0.000860 sec)
   passed  206/359  python-info-statement-starts-block-p-2 (0.000394 sec)
   passed  207/359  python-info-triple-quoted-string-p-1 (0.000480 sec)
   passed  208/359  python-info-triple-quoted-string-p-2 (0.000423 sec)
   passed  209/359  python-info-triple-quoted-string-p-3 (0.000494 sec)
Mark set
Mark set
   passed  210/359  python-mark-defun-1 (0.001315 sec)
Mark set
Mark set
   passed  211/359  python-mark-defun-2 (0.000970 sec)
Mark set
Mark set
   passed  212/359  python-mark-defun-3 (0.000468 sec)
Mark set
Mark set
   passed  213/359  python-mark-defun-4 (0.000501 sec)
Mark set
Mark set
Mark set
Mark set
   passed  214/359  python-mark-defun-5 (0.000926 sec)
   passed  215/359  python-nav-backward-defun-1 (0.000474 sec)
   passed  216/359  python-nav-backward-defun-2 (0.000427 sec)
   passed  217/359  python-nav-backward-defun-3 (0.000443 sec)
   passed  218/359  python-nav-backward-defun-4 (0.000466 sec)
   passed  219/359  python-nav-backward-statement-1 (0.000662 sec)
   failed  220/359  python-nav-backward-statement-2 (0.001177 sec)
   failed  221/359  python-nav-backward-up-list-1 (0.000552 sec)
   passed  222/359  python-nav-beginning-of-block-1 (0.001246 sec)
   passed  223/359  python-nav-beginning-of-block-2 (0.000718 sec)
   passed  224/359  python-nav-beginning-of-defun-1 (0.001096 sec)
   passed  225/359  python-nav-beginning-of-defun-2 (0.000689 sec)
   passed  226/359  python-nav-beginning-of-defun-3 (0.000286 sec)
   passed  227/359  python-nav-beginning-of-defun-4 (0.000408 sec)
   passed  228/359  python-nav-beginning-of-defun-5 (0.000335 sec)
   passed  229/359  python-nav-beginning-of-defun-6 (0.000271 sec)
   passed  230/359  python-nav-beginning-of-statement-1 (0.000348 sec)
   passed  231/359  python-nav-end-of-block-1 (0.001285 sec)
   passed  232/359  python-nav-end-of-block-2 (0.000262 sec)
   passed  233/359  python-nav-end-of-defun-1 (0.001893 sec)
   passed  234/359  python-nav-end-of-defun-2 (0.002456 sec)
   passed  235/359  python-nav-end-of-defun-3 (0.000553 sec)
   passed  236/359  python-nav-end-of-statement-1 (0.000494 sec)
   passed  237/359  python-nav-end-of-statement-2 (0.000269 sec)
   passed  238/359  python-nav-end-of-statement-3 (0.000259 sec)
   passed  239/359  python-nav-end-of-statement-4 (0.000260 sec)
   passed  240/359  python-nav-forward-block-1 (0.000654 sec)
   passed  241/359  python-nav-forward-block-2 (0.000272 sec)
   passed  242/359  python-nav-forward-defun-1 (0.000311 sec)
   passed  243/359  python-nav-forward-defun-2 (0.000300 sec)
   passed  244/359  python-nav-forward-defun-3 (0.000259 sec)
   passed  245/359  python-nav-forward-defun-4 (0.000231 sec)
   passed  246/359  python-nav-forward-sexp-1 (0.000892 sec)
   passed  247/359  python-nav-forward-sexp-2 (0.001402 sec)
   passed  248/359  python-nav-forward-sexp-3 (0.001064 sec)
   passed  249/359  python-nav-forward-sexp-safe-1 (0.001452 sec)
   passed  250/359  python-nav-forward-statement-1 (0.000773 sec)
   passed  251/359  python-nav-up-list-1 (0.000296 sec)
   passed  252/359  python-parens-electric-indent-1 (0.001215 sec)
   passed  253/359  python-shell-buffer-substring-1 (0.000722 sec)
   passed  254/359  python-shell-buffer-substring-10 (0.000488 sec)
   passed  255/359  python-shell-buffer-substring-11 (0.000454 sec)
   passed  256/359  python-shell-buffer-substring-12 (0.000425 sec)
   passed  257/359  python-shell-buffer-substring-13 (0.000391 sec)
   passed  258/359  python-shell-buffer-substring-14 (0.000408 sec)
   passed  259/359  python-shell-buffer-substring-15 (0.000401 sec)
   passed  260/359  python-shell-buffer-substring-16 (0.000395 sec)
   passed  261/359  python-shell-buffer-substring-17 (0.000396 sec)
   passed  262/359  python-shell-buffer-substring-18 (0.000377 sec)
   passed  263/359  python-shell-buffer-substring-2 (0.000515 sec)
   passed  264/359  python-shell-buffer-substring-3 (0.000502 sec)
   passed  265/359  python-shell-buffer-substring-4 (0.000676 sec)
   passed  266/359  python-shell-buffer-substring-5 (0.000531 sec)
   passed  267/359  python-shell-buffer-substring-6 (0.000452 sec)
   passed  268/359  python-shell-buffer-substring-7 (0.000447 sec)
   passed  269/359  python-shell-buffer-substring-8 (0.000498 sec)
   passed  270/359  python-shell-buffer-substring-9 (0.000771 sec)
   passed  271/359  python-shell-calculate-exec-path-1 (0.000130 sec)
   passed  272/359  python-shell-calculate-exec-path-2 (0.000085 sec)
   passed  273/359  python-shell-calculate-exec-path-3 (0.000080 sec)
   passed  274/359  python-shell-calculate-exec-path-4 (0.001710 sec)
   passed  275/359  python-shell-calculate-exec-path-5 (0.000073 sec)
   passed  276/359  python-shell-calculate-exec-path-6 (0.000124 sec)
   passed  277/359  python-shell-calculate-process-environment-1 (0.000054 sec)
   passed  278/359  python-shell-calculate-process-environment-2 (0.000072 sec)
   passed  279/359  python-shell-calculate-process-environment-3 (0.000185 sec)
   passed  280/359  python-shell-calculate-process-environment-4 (0.000072 sec)
   passed  281/359  python-shell-calculate-process-environment-5 (0.000067 sec)
   passed  282/359  python-shell-calculate-process-environment-6 (0.000064 sec)
   passed  283/359  python-shell-calculate-process-environment-7 (0.000076 sec)
   passed  284/359  python-shell-calculate-process-environment-8 (0.000067 sec)
   passed  285/359  python-shell-calculate-pythonpath-1 (0.000064 sec)
   passed  286/359  python-shell-calculate-pythonpath-2 (0.000066 sec)
Test python-shell-completion-at-point-1 backtrace:
  signal(ert-test-failed (((should (nth 2 (python-shell-completion-at-
  ert-fail(((should (nth 2 (python-shell-completion-at-point))) :form 
  #f(compiled-function () #<bytecode -0x1c337af7c9e93016>)()
  #f(compiled-function () #<bytecode -0x15266b19ba44d40b>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x15266b19ba44d40
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name python-shell-completion-at-point-1 :d
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":../../emacs/test" "-l" "ert" "--eval" "(setq 
  command-line()
  normal-top-level()
Test python-shell-completion-at-point-1 condition:
    (ert-test-failed
     ((should (nth 2 (python-shell-completion-at-point))) :form
      (nth 2 nil) :value nil))
   FAILED  287/359  python-shell-completion-at-point-1 (0.293285 sec) at ../../emacs/test/lisp/progmodes/python-tests.el:4785
  skipped  288/359  python-shell-completion-at-point-ipython (0.000699 sec)
  skipped  289/359  python-shell-completion-at-point-jedi-completer (0.222261 sec)
   passed  290/359  python-shell-completion-at-point-native-1 (0.299456 sec)
   passed  291/359  python-shell-completion-native-interpreter-disabled-p-1 (0.000124 sec)
Can't guess python-indent-offset, using defaults: 4
   passed  292/359  python-shell-get-process-1 (0.113812 sec)
   passed  293/359  python-shell-get-process-name-1 (0.000381 sec)
Can't guess python-indent-offset, using defaults: 4
   passed  294/359  python-shell-get-process-name-2 (0.008759 sec)
Can't guess python-indent-offset, using defaults: 4
   passed  295/359  python-shell-internal-get-or-create-process-1 (0.058572 sec)
   passed  296/359  python-shell-internal-get-process-name-1 (0.000343 sec)
Can't guess python-indent-offset, using defaults: 4
   passed  297/359  python-shell-internal-get-process-name-2 (0.006695 sec)
   passed  298/359  python-shell-make-comint-1 (0.050022 sec)
   passed  299/359  python-shell-make-comint-2 (0.048224 sec)
   passed  300/359  python-shell-make-comint-3 (0.051549 sec)
   passed  301/359  python-shell-make-comint-4 (0.052049 sec)
   passed  302/359  python-shell-prompt-detect-1 (0.040509 sec)
   passed  303/359  python-shell-prompt-detect-2 (0.036072 sec)
   passed  304/359  python-shell-prompt-detect-3 (0.000137 sec)
Warning (python): Python shell prompts cannot be detected.
If your emacs session hangs when starting python shells
recover with `keyboard-quit' and then try fixing the
interactive flag for your interpreter by adjusting the
`python-shell-interpreter-interactive-arg' or add regexps
matching shell prompts in the directory-local friendly vars:
  + `python-shell-prompt-regexp'
  + `python-shell-prompt-block-regexp'
  + `python-shell-prompt-output-regexp'
Or alternatively in:
  + `python-shell-prompt-input-regexps'
  + `python-shell-prompt-output-regexps'
   passed  305/359  python-shell-prompt-detect-4 (0.091465 sec)
   passed  306/359  python-shell-prompt-detect-5 (0.076047 sec)
   passed  307/359  python-shell-prompt-detect-6 (0.000866 sec)
   passed  308/359  python-shell-prompt-set-calculated-regexps-1 (0.000099 sec)
   passed  309/359  python-shell-prompt-set-calculated-regexps-2 (0.000076 sec)
   passed  310/359  python-shell-prompt-set-calculated-regexps-3 (0.000069 sec)
   passed  311/359  python-shell-prompt-set-calculated-regexps-4 (0.000073 sec)
   passed  312/359  python-shell-prompt-set-calculated-regexps-5 (0.000078 sec)
   passed  313/359  python-shell-prompt-set-calculated-regexps-6 (0.042912 sec)
   passed  314/359  python-shell-prompt-validate-regexps-1 (0.000087 sec)
   passed  315/359  python-shell-prompt-validate-regexps-2 (0.000080 sec)
   passed  316/359  python-shell-prompt-validate-regexps-3 (0.000076 sec)
   passed  317/359  python-shell-prompt-validate-regexps-4 (0.000075 sec)
   passed  318/359  python-shell-prompt-validate-regexps-5 (0.000067 sec)
   passed  319/359  python-shell-prompt-validate-regexps-6 (0.000069 sec)
   passed  320/359  python-shell-prompt-validate-regexps-7 (0.000057 sec)
   passed  321/359  python-shell-with-environment-1 (0.000106 sec)
   passed  322/359  python-shell-with-environment-2 (0.000303 sec)
   passed  323/359  python-shell-with-environment-3 (0.000507 sec)
   passed  324/359  python-syntax-after-python-backspace (0.000332 sec)
   passed  325/359  python-syntax-context-1 (0.000307 sec)
Sent: for x in range(1,3):...
Sent:     print('current %s' % x)...
   passed  326/359  python-test--shell-send-block (0.363776 sec)
   passed  327/359  python-tests--fill-long-first-line (0.002034 sec)
   passed  328/359  python-tests--flymake-command-output-pattern (0.000157 sec)
   passed  329/359  python-tests--run-python-selects-window (0.052643 sec)
   passed  330/359  python-tests-look-at-1 (0.000348 sec)
   passed  331/359  python-tests-look-at-2 (0.000258 sec)
   passed  332/359  python-triple-double-quote-pairing (0.002244 sec)
   passed  333/359  python-triple-single-quote-pairing (0.001065 sec)
   passed  334/359  python-ts-mode-assignement-face-2 (0.078170 sec)
   passed  335/359  python-ts-mode-builtin-call-face (0.020583 sec)
   passed  336/359  python-ts-mode-class-patterns-face (0.004865 sec)
   passed  337/359  python-ts-mode-compound-keywords-face (0.003748 sec)
   passed  338/359  python-ts-mode-disabled-string-interpolation (0.001736 sec)
   passed  339/359  python-ts-mode-dotted-decorator-face-1 (0.001627 sec)
   passed  340/359  python-ts-mode-dotted-decorator-face-2 (0.001935 sec)
   passed  341/359  python-ts-mode-interpolation-doc-string (0.001616 sec)
   passed  342/359  python-ts-mode-interpolation-nested-string (0.001567 sec)
   passed  343/359  python-ts-mode-isinstance-type-face-1 (0.001685 sec)
   passed  344/359  python-ts-mode-isinstance-type-face-2 (0.001532 sec)
   passed  345/359  python-ts-mode-isinstance-type-face-3 (0.001694 sec)
   passed  346/359  python-ts-mode-level-fontification-wo-interpolation (0.001645 sec)
   passed  347/359  python-ts-mode-named-assignement-face-1 (0.001592 sec)
   passed  348/359  python-ts-mode-nested-types-face-1 (0.001762 sec)
   passed  349/359  python-ts-mode-superclass-type-face (0.002862 sec)
   passed  350/359  python-ts-mode-types-face-1 (0.002398 sec)
   passed  351/359  python-ts-mode-types-face-2 (0.002358 sec)
   passed  352/359  python-ts-mode-types-face-3 (0.001756 sec)
   passed  353/359  python-ts-mode-union-types-face-1 (0.001789 sec)
   passed  354/359  python-ts-mode-union-types-face-2 (0.001870 sec)
   passed  355/359  python-util-clone-local-variables-1 (0.001066 sec)
   passed  356/359  python-util-forward-comment-1 (0.001229 sec)
   passed  357/359  python-util-goto-line-1 (0.000335 sec)
   passed  358/359  python-util-strip-string-1 (0.000231 sec)
   passed  359/359  python-util-valid-regexp-p-1 (0.000080 sec)

Ran 359 tests, 350 results as expected, 7 unexpected, 2 skipped (2024-05-26 12:40:01+0200, 14.810718 sec)
3 expected failures

7 unexpected results:
   FAILED  python-completion-at-point-1
   FAILED  python-completion-at-point-2
   FAILED  python-completion-at-point-native-1
   FAILED  python-completion-at-point-native-2
   FAILED  python-completion-at-point-native-with-eldoc-1
   FAILED  python-completion-at-point-native-with-ffap-1
   FAILED  python-shell-completion-at-point-1

2 skipped results:
  SKIPPED  python-shell-completion-at-point-ipython
  SKIPPED  python-shell-completion-at-point-jedi-completer

  parent reply	other threads:[~2024-05-26 10:52 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-07  6:53 bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters Lin Sun
2024-05-11  9:05 ` Eli Zaretskii
2024-05-11 13:37   ` kobarity
2024-05-11 14:27     ` Lin Sun
2024-05-12  2:06       ` kobarity
2024-05-18 22:20 ` Stefan Kangas
2024-05-19  5:54   ` Eli Zaretskii
2024-05-20  0:08     ` Lin Sun
2024-05-20 15:52       ` kobarity
2024-05-20 17:51         ` Lin Sun
2024-05-21 14:04           ` kobarity
2024-05-21 15:34             ` Lin Sun
2024-05-22 14:38               ` kobarity
2024-05-23 13:09                 ` Eli Zaretskii
2024-05-26 10:52 ` Mattias Engdegård [this message]
2024-05-26 12:05   ` kobarity
2024-05-26 12:21     ` Mattias Engdegård
2024-05-26 12:36       ` kobarity
2024-05-26 13:23         ` Mattias Engdegård
2024-05-26 14:15           ` kobarity
2024-05-26 15:00             ` kobarity
2024-05-26 15:24               ` Mattias Engdegård
2024-05-27 12:33                 ` kobarity
2024-05-27 12:45                   ` Eli Zaretskii
2024-05-28 12:30                   ` Mattias Engdegård
2024-05-28 15:17                     ` kobarity
2024-05-28 16:09                       ` Mattias Engdegård
2024-05-29 14:56                         ` kobarity
2024-05-30 10:09                           ` Mattias Engdegård
2024-06-02 13:20                             ` kobarity
2024-06-03 14:02                               ` Mattias Engdegård
2024-06-03 14:34                                 ` kobarity
2024-06-03 16:24                                   ` kobarity
2024-06-04 14:29                                     ` kobarity
2024-06-05 10:25                                       ` Mattias Engdegård
2024-06-05 11:52                                         ` kobarity
2024-06-08 15:34                                           ` kobarity
2024-06-09 13:58                                             ` Mattias Engdegård
2024-06-10 14:57                                               ` kobarity
2024-06-10 15:44                                                 ` Mattias Engdegård
2024-05-26 15:56             ` Eli Zaretskii
2024-05-26 23:06               ` Stefan Kangas
2024-05-27 11:18                 ` Eli Zaretskii
2024-05-27 12:20                   ` Mattias Engdegård
2024-05-27 12:43                     ` Eli Zaretskii
2024-05-26 15:52           ` Eli Zaretskii
2024-05-27 10:24             ` Mattias Engdegård
2024-05-27 11:19               ` Lin Sun
2024-05-26 15:36   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6057C283-20C5-4A91-9CD4-EBA521B8C893@gmail.com \
    --to=mattias.engdegard@gmail.com \
    --cc=70815@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=kobarity@gmail.com \
    --cc=stefankangas@gmail.com \
    --cc=sunlin7.mail@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).