-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
ENH: enable OpenBLAS on windows. #9645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
37878bf
TST: appveyor: Enable OpenBLAS via MinGW Gfortran
xoviat 917652a
TST: fix failures:
xoviat 67a175b
appveyor: update documentation
xoviat 06b5318
tests: core: update failure message
xoviat 0957a1f
TST: utils: fix test_error_msg
xoviat bcc5d1d
TST: util: update documentation
xoviat 41407a2
TST: common: update documentation
xoviat e149d29
TST: block docstring: update comment
xoviat 167ca98
TST: callback: update comment
xoviat 84fdfb3
TST: util: fix test_error_message
xoviat 66029c7
:art:
xoviat 79c476e
TST: utils: fix string continuation
xoviat 448bb82
appveyor: update documentation
xoviat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
TST: utils: fix test_error_msg
Allow the error message to contain "large" arrays.
- Loading branch information
commit 0957a1fa0afa05d0d8a1a4f54efed46b8a81640b
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,21 +263,22 @@ def test_complex(self): | |
self._assert_func(x, x) | ||
self._test_not_equal(x, y) | ||
|
||
@dec.knownfailureif(sys.version_info < (3, 0), | ||
msg="Error message different on Python 2") | ||
def test_error_message(self): | ||
try: | ||
self._assert_func(np.array([1, 2]), np.matrix([1, 2])) | ||
except AssertionError as e: | ||
self.assertEqual( | ||
str(e), | ||
"\nArrays are not equal\n\n" | ||
msg = str(e) | ||
msg2 = msg.replace("shapes (2,), (1, 2)", "shapes (2L,), (1L, 2L)") | ||
msg_reference = "\nArrays are not equal\n\n" | ||
"(shapes (2,), (1, 2) mismatch)\n" | ||
" x: array([1, 2])\n" | ||
" y: [repr failed for <matrix>: The truth value of an array " | ||
"with more than one element is ambiguous. Use a.any() or " | ||
"a.all()]") | ||
|
||
"a.all()]" | ||
try: | ||
self.assertEqual(msg, msg_reference) | ||
except AssertionError: | ||
self.assertEqual(msg2, msg_reference) | ||
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The try: except is not needed. You can make it simpler via |
||
|
||
class TestArrayAlmostEqual(_GenericTest, unittest.TestCase): | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arguments the other way around.
Also, the try: except: isn't necessary if you do replacement in str(e).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was not thinking here; I copied the replace statement directly from the comment without looking at it myself.