The @test_throws macro wants you to specify the type of exception you 
expect so that if some other exception is thrown, the test will not pass. 
Assuming MethodError is the exception you expect to be thrown by Graph("
http://not.an.URI.but.a.string";), just replace `@test_throws Graph("
http://not.an.URI.but.a.string";)` with `@test_throws MethodError Graph("
http://not.an.URI.but.a.string";)` in your testing script, and the warning 
should disappear. 

On Wednesday, August 20, 2014 10:41:10 AM UTC-7, Kim wrote:
>
> Hello,
>
>   My unit tests are working fine, but I see the following output in the 
> console:
>
>     WARNING: @test_throws without an exception type is deprecated
>         Use @test_throws MethodError Graph("http://not.an.URI.but.a.string
> ")
>     in backtrace at error.jl:30
>     in include_from_node1 at loading.jl:128
>
>   I looked at http://julia.readthedocs.org/en/latest/stdlib/test/, but 
> cannot quite figure out why I would see this warning. I am using 
> Julia 0.3.0-rc1+60 x86_64-apple-darwin13.3.0.
>
>   Any suggestions where I can read up on this further?
>
> Thanks,
>
> Kim
>

Reply via email to