Closed weikang9009 closed 6 years ago
Oh! I didn't see that when I was troubleshooting this; I just figured pytest threw errors on all warnings, so filtered that specific warning we knew about.
I'm not sure why @yogabonito wanted to have warnings be exceptions in test_heu.py
... is there a good reason there?
Maybe the proper fix is to turn warnings-as-failures back off after that code, rather than forcing them always to be off.
That might work. Let's give it a try!
o, maybe also rebase? git pull --rebase upstream master
, if you called this one origin?
I think I have integrated all the updates from the master branch. No?
it says "this branch cannot be rebased due to conflicts?" not sure why that'd happen if the rebase was successful?
I didn't use --rebase when pulling changes from upstream master... 😢
On Tue, May 8, 2018 at 3:07 PM Levi John Wolf notifications@github.com wrote:
it says "this branch cannot be rebased due to conflicts?" not sure why that'd happen if the rebase was successful?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pysal/region/pull/8#issuecomment-387557876, or mute the thread https://github.com/notifications/unsubscribe-auth/AHBLNEJ2hHLXnLGM4Um6KJHpc1qGRWEYks5twhc9gaJpZM4T3Pvf .
-- Wei Kang School of Geographical Sciences & Urban Planning Arizona State University | Ph.D. Candidate
oh no... ok, well, we could:
git fetch upstream master && git reset --hard upstream/master
, make the changes again, and git push -f origin master
(or replace origin
with whatever you've called your own remote version). Then, this PR will automatically update with the right stuff. I've done number 1, but it's pretty spooky :ghost:
Thank you very much, @weikang9009 for finding the root of the errors! And sorry, @ljwolf, for causing so much headache! Honestly, I don't remember why I wrote that warnings2errors-line (I even forgot that I used it).
It turns out that the
travis-ci
build withpytest
exits with code 1 (fail) when there is a warning with skater is due to warnings.filterwarnings("error") intest_heu.py
which turns warnings into exceptions. Once the line is commented out, thetravis-ci
build withpytest
will be successful and give a warning message: Not sure why the warning filter becomes a global one though...I also changed the testing code for skater
test_skater.py
to use thepytest
package and syntax instead ofunittest
to be consistent with the others in theregion
package.