Skip to content

Commit

Permalink
Fix depwarn in test (kmsquire#52)
Browse files Browse the repository at this point in the history
* Fix `Symbol` depwarn in test
* Use `Compat` for v0.4 compatibilty
  • Loading branch information
ranjanan authored and kmsquire committed Oct 18, 2016
1 parent 8566a25 commit b1492b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
julia 0.4
Compat 0.7.15
3 changes: 2 additions & 1 deletion test/macro_test.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using Logging
using Base.Test
using Compat

function test_log_macro_common(flags)
for (macroname, isshown) in flags
ex = Expr(:macrocall, symbol(macroname), "test message")
ex = Expr(:macrocall, Symbol(macroname), "test message")
if isshown
@test ex |> macroexpand != :nothing
else
Expand Down

0 comments on commit b1492b8

Please sign in to comment.