[yt-dev] Answer Testing question

John ZuHone jzuhone at gmail.com
Thu Oct 15 06:47:51 PDT 2015


Ok, so I was a moron and included all the right flags to execute nose answer tests *except* “—with-answer-testing”. 

However, I was under the impression that we didn’t error out if we forgot to include this—that they were just ignored. Thoughts? 

> On Oct 15, 2015, at 1:10 AM, Nathan Goldbaum <nathan12343 at gmail.com> wrote:
> 
> Hi John,
> 
> 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.
> 
> Do you have an example nosetests invocation you are doing that triggers this error?
> 
> 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...
> 
> So that means the GenericArrayTests are not actually being used anywhere by anyone in the test suite. It's possible they have a bug...
> 
> -Nathan
> 
> On Wed, Oct 14, 2015 at 7:40 PM, John ZuHone <jzuhone at gmail.com <mailto:jzuhone at gmail.com>> wrote:
> Hi devs,
> 
> 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.
> 
> 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:
> 
> http://paste.yt-project.org/show/5976/ <http://paste.yt-project.org/show/5976/>
> 
> Here’s the error message I get:
> 
> http://paste.yt-project.org/show/5977/ <http://paste.yt-project.org/show/5977/>
> 
> I’ve looked into the answer testing code, but I can’t decipher why this is happening. This is under Python 2. 
> 
> Best,
> 
> John
> 
> 
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org <mailto:yt-dev at lists.spacepope.org>
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org <http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org>
> 
> 
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20151015/1632fb96/attachment.htm>


More information about the yt-dev mailing list