me
/
guix
Archived
1
0
Fork 0

gnu: python-pyfakefs: Disable unreliable test

* gnu/packages/check.scm (python-pyfakefs) [arguments]: Add new phase to
skip single test.
master
Lars-Dominik Braun 2021-01-11 14:44:02 +01:00 committed by Maxim Cournoyer
parent 355d87a0a5
commit cfe2cf2a29
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 10 additions and 2 deletions

View File

@ -2756,13 +2756,21 @@ grew out of the @dfn{Vc} project.")
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-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)))))
;; The default test suite does not run these extra tests. ;; The default test suite does not run these extra tests.
(add-after 'check 'check-pytest-plugin (add-after 'check 'check-pytest-plugin
(lambda _ (lambda _
(invoke (invoke
"python" "-m" "pytest" "python" "-m" "pytest"
"pyfakefs/pytest_tests/pytest_plugin_test.py") "pyfakefs/pytest_tests/pytest_plugin_test.py"))))))
#t)))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest))) `(("python-pytest" ,python-pytest)))
(build-system python-build-system) (build-system python-build-system)