From e76db5088bafd7a3788a80a834d4983e0eed0e6a Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 11 Jan 2021 14:44:02 +0100 Subject: [PATCH v2 06/16] gnu: python-pyfakefs: Disable unreliable test * gnu/packages/check.scm (python-pyfakefs) [arguments]: Add new phase to skip single test. --- gnu/packages/check.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index c12cb98a6c..9ddf656324 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -2858,6 +2858,16 @@ grew out of the @dfn{Vc} project.") (arguments `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-testsuite + (lambda _ + ;; Time difference is larger than expected. + (substitute* "pyfakefs/tests/fake_filesystem_unittest_test.py" + (("(\\s+)def test_copy_real_file" all indent) + (string-append + indent + "@unittest.skip('disabled by guix')\n" + all))) + #t)) ;; The default test suite does not run these extra tests. (add-after 'check 'check-pytest-plugin (lambda _ -- 2.26.2