Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 464320 Details for
Bug 597700
dev-python/pytest-xdist-1.15.0 fails test test_n1_import_error.py - 'No module named __import_of_missing_module'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to adapt to new output format of pytest >= 3.0.0
pytest-xdist-1.15.0-Fix_test_n1_import_error.patch (text/plain), 1.19 KB, created by
Maram
on 2017-02-19 12:33:25 UTC
(
hide
)
Description:
Patch to adapt to new output format of pytest >= 3.0.0
Filename:
MIME Type:
Creator:
Maram
Created:
2017-02-19 12:33:25 UTC
Size:
1.19 KB
patch
obsolete
>Subject: Adapt acceptance_test.py to new pytest output format > >The test test_n1_import_error in testing/acceptance_test.py does some >regex matching against the output of pytest. However, since pytest-3.0.0 >the output has changed slightly. > >This patch adjust the matching patterns to match both the new and the old >format. Note, however, that due to this the patterns are quite generic. > >diff -ur a/testing/acceptance_test.py b/testing/acceptance_test.py >--- a/testing/acceptance_test.py >+++ b/testing/acceptance_test.py >@@ -30,7 +30,8 @@ > result = testdir.runpytest(p1, "-n1") > assert result.ret == 1 > result.stdout.fnmatch_lines([ >- "E ImportError: *__import_of_missing_module*", >+ "*ImportError*", >+ "*__import_of_missing_module*", > ]) > > def test_n2_import_error(self, testdir): >@@ -64,7 +65,8 @@ > result = testdir.runpytest(p1, '--tx=popen', '--tx=popen') > assert result.ret == 1 > result.stdout.fnmatch_lines([ >- "E ImportError: *__import_of_missing_module*", >+ "*ImportError*", >+ "*__import_of_missing_module*", > ]) > > def test_manytests_to_one_popen(self, testdir):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 597700
:
450900
|
462928
| 464320