guix-commits
[Top][All Lists]
Advanced

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

04/05: gnu: python-aws-xray-sdk: Set PYTHONPATH when running tests.


From: guix-commits
Subject: 04/05: gnu: python-aws-xray-sdk: Set PYTHONPATH when running tests.
Date: Mon, 13 Dec 2021 07:59:32 -0500 (EST)

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

commit 0b1f5d24776508283c636027cb3e887271cfbc63
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Dec 13 13:55:17 2021 +0100

    gnu: python-aws-xray-sdk: Set PYTHONPATH when running tests.
    
    * gnu/packages/python-web.scm (python-aws-xray-sdk)[arguments]: Check:
    Set PYTHONPATH.
---
 gnu/packages/python-web.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 73a45ca..78ef97f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -467,6 +467,8 @@ Model} (SAM) templates into AWS CloudFormation templates.")
                                   "tests/ext/aiohttp/test_client.py"))))
                   (replace 'check
                     (lambda _
+                      ;; Allow "import tests.utils" to work as expected.
+                      (setenv "PYTHONPATH" (getcwd))
                       (invoke "pytest" "-vv" "tests"))))))
     (native-inputs
      `(;; These are required for the test suite.



reply via email to

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