From: Lev Lamberov <dogsleg@debian.org>
Subject: Disable tests that require Python2

This patch disables tests that require Python2. Unfortunately, these
tests cannot be disabled with dh_elpa_tests configuration, so we have
to patch tests file.

--- a/test-python-environment.el
+++ b/test-python-environment.el
@@ -175,14 +175,14 @@ DUMMY-MESSAGE (SYNC)...Done
 (pye-deftest pye-test-make-environment-with-non-existing-command ()
   (should-error (python-environment-make nil '("non-existing-command"))))
 
-(pye-deftest pye-test-make-environment ()
-  (deferred:sync! (python-environment-make)))
+;; (pye-deftest pye-test-make-environment ()
+;;   (deferred:sync! (python-environment-make)))
 
-(pye-deftest pye-test-run ()
-  (deferred:sync! (python-environment-run '("python" "--version"))))
+;; (pye-deftest pye-test-run ()
+;;   (deferred:sync! (python-environment-run '("python" "--version"))))
 
-(pye-deftest pye-test-run-block ()
-  (python-environment-run-block '("python" "--version")))
+;; (pye-deftest pye-test-run-block ()
+;;   (python-environment-run-block '("python" "--version")))
 
 (pye-deftest pye-test-block-error ()
   (should-error (python-environment-run-block '("python" "-c" "1/0"))))
@@ -191,13 +191,13 @@ DUMMY-MESSAGE (SYNC)...Done
   (pye-eval-in-subprocess '(+ 1 2))
   (should-error (pye-eval-in-subprocess '(error "some error"))))
 
-(pye-deftest pye-test-bare-make-environment ()
-  (let ((tmp-home python-environment-directory))
-    (pye-eval-in-subprocess '(deferred:sync! (python-environment-make))
-                            `(("HOME" ,tmp-home)))
-    (should (file-directory-p (expand-file-name
-                               ".emacs.d/.python-environments/default"
-                               tmp-home)))))
+;; (pye-deftest pye-test-bare-make-environment ()
+;;   (let ((tmp-home python-environment-directory))
+;;     (pye-eval-in-subprocess '(deferred:sync! (python-environment-make))
+;;                             `(("HOME" ,tmp-home)))
+;;     (should (file-directory-p (expand-file-name
+;;                                ".emacs.d/.python-environments/default"
+;;                                tmp-home)))))
 
 (provide 'test-python-environment)
 
