Skip to content

Commit 68294a0

Browse files
committed
Fix deprecation warnings for @test_throws
1 parent f0410e3 commit 68294a0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/tests.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ p4 = p2 * p3
6868
@test divrem(p1,p1) == (p1,p0)
6969
@test divrem(p2,p2) == (p1,p0)
7070
@test divrem(pR, pR) == (one(pR), zero(pR))
71-
@test_throws p1/p0
72-
@test_throws divrem(p0,p0)
71+
@test_throws DivideError p1/p0
72+
@test_throws DivideError divrem(p0,p0)
7373

7474
#Tests for multivariable support
7575
pX = Poly([1, 2, 3, 4, 5])
@@ -79,8 +79,8 @@ pS3 = Poly([1, 2, 3, 4, 5], :s)
7979
@test pX != pS1
8080
@test pS1 == pS2
8181
@test pS1 == pS3
82-
@test_throws pS1 + pX
83-
@test_throws pS1 - pX
84-
@test_throws pS1 * pX
85-
@test_throws pS1 / pX
86-
@test_throws pS1 % pX
82+
@test_throws ErrorException pS1 + pX
83+
@test_throws ErrorException pS1 - pX
84+
@test_throws ErrorException pS1 * pX
85+
@test_throws ErrorException pS1 / pX
86+
@test_throws ErrorException pS1 % pX

0 commit comments

Comments
 (0)