<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ok, so I was a moron and included all the right flags to execute nose answer tests *except* “—with-answer-testing”. <div class=""><br class=""></div><div class="">However, I was under the impression that we didn’t error out if we forgot to include this—that they were just ignored. Thoughts? </div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 15, 2015, at 1:10 AM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" class="">nathan12343@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi John,<div class=""><br class=""></div><div class="">I'm not sure. It looks like the reference_storage gets set up inside the plugin setup function, which *should* be called when you do the tests --with-answer-testing.</div><div class=""><br class=""></div><div class="">Do you have an example nosetests invocation you are doing that triggers this error?</div><div class=""><br class=""></div><div class="">Also, now that I look at it, it looks like the current uses of the GenericArrayTest in the test suite are not actually being run. Both the SZ answer tests and the photon simulator answer tests don't have a job on fido. I'd suggest you coordinate with Kacper to get that enabled...</div><div class=""><br class=""></div><div class="">So that means the GenericArrayTests are not actually being used anywhere by anyone in the test suite. It's possible they have a bug...</div><div class=""><br class=""></div><div class="">-Nathan</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Oct 14, 2015 at 7:40 PM, John ZuHone <span dir="ltr" class=""><<a href="mailto:jzuhone@gmail.com" target="_blank" class="">jzuhone@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi devs,<div class=""><br class=""></div><div class="">I have an odd issue that I can’t seem to diagnose. I’m setting up an answer test for two arrays, which are not related to anything in a dataset. I’m doing it using the GenericArrayTest (it’s in the answer testing framework), which compares two NumPy arrays.</div><div class=""><br class=""></div><div class="">Here’s my test—the way you get the arrays is immaterial, all you need to know is the stuff at the bottom where I’m comparing two NumPy arrays:</div><div class=""><br class=""></div><div class=""><a href="http://paste.yt-project.org/show/5976/" target="_blank" class="">http://paste.yt-project.org/show/5976/</a></div><div class=""><br class=""></div><div class="">Here’s the error message I get:</div><div class=""><br class=""></div><div class=""><a href="http://paste.yt-project.org/show/5977/" target="_blank" class="">http://paste.yt-project.org/show/5977/</a></div><div class=""><br class=""></div><div class="">I’ve looked into the answer testing code, but I can’t decipher why this is happening. This is under Python 2. </div><div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">John</div><div class=""><br class=""></div></div><br class="">_______________________________________________<br class="">
yt-dev mailing list<br class="">
<a href="mailto:yt-dev@lists.spacepope.org" class="">yt-dev@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">yt-dev mailing list<br class=""><a href="mailto:yt-dev@lists.spacepope.org" class="">yt-dev@lists.spacepope.org</a><br class="">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org<br class=""></div></blockquote></div><br class=""></div></body></html>