Skip to content

Commit 3595142

Browse files
committed
Update test-nodes.jl
1 parent b362025 commit 3595142

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test-nodes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ end
6060

6161
@testset "Adding a child with a different MTG encoding type" begin
6262
mtg = read_mtg(file, Dict, MutableNodeMTG)
63-
@test_throws "The parent node has an MTG encoding of type `MutableNodeMTG`, but the MTG encoding you provide is of type `NodeMTG`, please make sure they are the same." Node(mtg, NodeMTG("/", "Branch", 1, 2))
63+
VERSION >= v"1.7" && @test_throws "The parent node has an MTG encoding of type `MutableNodeMTG`, but the MTG encoding you provide is of type `NodeMTG`, please make sure they are the same." Node(mtg, NodeMTG("/", "Branch", 1, 2))
6464
end
6565

0 commit comments

Comments
 (0)