guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: python-flake8-polyfill: Adjust tests for Pytest 4.


From: guix-commits
Subject: 01/02: gnu: python-flake8-polyfill: Adjust tests for Pytest 4.
Date: Thu, 18 Jul 2019 18:01:57 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 40a7153d198821c4111d5bb864f872d2df108013
Author: Marius Bakke <address@hidden>
Date:   Thu Jul 18 23:15:50 2019 +0200

    gnu: python-flake8-polyfill: Adjust tests for Pytest 4.
    
    * gnu/packages/python-xyz.scm (python-flake8-polyfill)[arguments]: Add
    substitution in setup.cfg.
---
 gnu/packages/python-xyz.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5a7a21d..e2ef589 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6541,6 +6541,12 @@ complexity of Python source code.")
        (modify-phases %standard-phases
          (replace 'check
            (lambda _
+             ;; Be compatible with Pytest 4:
+             ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
+             (substitute* "setup.cfg"
+               (("\\[pytest\\]")
+                "[tool:pytest]"))
+
              (setenv "PYTHONPATH"
                      (string-append (getcwd) "/build/lib:"
                                     (getenv "PYTHONPATH")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]