-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Make weave tests behave #3182
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
Make weave tests behave #3182
Conversation
I have verified that the number of tests run and total test time is unchanged. |
First, a big "thank you" for doing this! I just tried the PR, and got three weave errors:
But there were no files left behind 😄 |
works for me on a ubuntu derivative runtests.py default mode
|
@WarrenWeckesser I can't reproduce this. Neither can TravisCI or Alex. So could you investigate? I only changed the use of globals for |
So far all I know is that some catalog methods are returning empty lists when they shouldn't:
I'll try to take another look this weekend. FWIW, I'm using Anaconda's python in Ubuntu 12.04 (64 bit). |
I think it's a bug in |
I haven't debugged the errors, but I have some more information. On my system, |
@WarrenWeckesser do you want me to just put |
Apparently the Anaconda python distribution from Continuum is missing the library With this PR, TL;DR: This might be a problem with Anaconda's build of the |
OK now that rings a bell. |
…a purpose Issue without this import observed by Warren with Anaconda on scipygh-3182. See comments in commit for more details.
@WarrenWeckesser done, see last commit. Can you test again? |
@@ -114,7 +116,6 @@ def test_function(): | |||
expr = "ex[:,1:,1:] = k + ca_x[:,1:,1:] * ex[:,1:,1:]" \ | |||
"+ cb_y_x[:,1:,1:] * (hz[:,1:,1:] - hz[:,:-1,1:])"\ | |||
"- cb_z_x[:,1:,1:] * (hy[:,1:,1:] - hy[:,1:,:-1])" | |||
#ast = parser.suite('a = (b + c) * sin(d)') | |||
ast = parser.suite(expr) |
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.
This function (test_function
) looks like a test. It assigns values to a bunch of local variables that are never used. Nothing calls it. It should be removed or moved to a file in the tests
directory. But that doesn't have to happen in this PR, if you want to restrict the changes in this PR to the more obvious bits of code clean up.
The tests now pass for me. I made a few small suggestions as line notes. Other than those, I think the PR is ready to go. |
Just now seeing this. Is there still something you want me to look at in the Anaconda package? I looked at our scipy recipe and there's nothing too out of the ordinary going on. We do have a small patch to skip a failing test, and we do some stuff when we link against MKL, but other than that it's just setup.py install. |
@asmeurer it's not your scipy but your Python install - that's lacking bsddb (stdlib module that sometimes doesn't get built, I don't remember exactly why). If you did that on purpose, no need to do anything. But you may want to fix that for Python 2.7 is you care about BSDDB support. |
Yep, I just checked, and it's not there on Mac OS X or Linux (but it is on Windows). We do have some code to support it, but only on armv6l. I'm not sure what the store is there. @ilanschnell would have to comment. But I also noticed that bsddb is deprecated, and was removed from Python 3 (http://docs.python.org/2/library/bsddb.html#module-bsddb). |
Basic changes - no docstrings, imports, run_module_suite
Also remove duplicate remove_whitespace function in a number of files.
…a purpose Issue without this import observed by Warren with Anaconda on scipygh-3182. See comments in commit for more details.
* Remove an unused function ('test_function()') from blitz_tools.py * Fix a typo in a comment in test_blitz_tools.py * Remove a commented-out line of code from test_ext_tools.py
OK this all works now and contains added commits from Warren and Julian that needed to go in, so merging. |
Most importantly:
Furthermore a lot of random cleanups and deletions of unused or commented out code.