Skip to content

Commit

Permalink
Only assign to Base.have_color if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored and ssfrr committed May 26, 2018
1 parent 1d57c69 commit cb5550b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ using DeepDiffs
using Compat
using Compat.Test

# Capture the original state of the global flag
orig_color = Base.have_color
if isdefined(Base, :have_color)
# Capture the original state of the global flag
orig_color = Base.have_color
end

@testset "DeepDiff Tests" begin
include("arrays.jl")
Expand Down

0 comments on commit cb5550b

Please sign in to comment.