From c74af347a1aa1f3b97f51f7b79b13ccd91ab7963 Mon Sep 17 00:00:00 2001 From: Nathan Hattersley Date: Sun, 17 Dec 2023 10:10:30 -0600 Subject: [PATCH] satisfy coverage checker --- test/runtests.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 13cc2edf..5e4e31ee 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -167,8 +167,11 @@ const PyInt = pyversion < v"3" ? Int : Clonglong end @test roundtripeq(Dates.Date(2012,3,4)) + @test_throws ArgumentError convert(Dates.Date, PyObject(42)) @test roundtripeq(Dates.DateTime(2012,3,4, 7,8,9,11)) + @test_throws ArgumentError convert(Dates.DateTime, PyObject(42)) @test roundtripeq(Dates.Time(7,8,9,11)) + @test_throws ArgumentError convert(Dates.Time, PyObject(42)) @test roundtripeq(Dates.Millisecond(typemax(Int32))) @test roundtripeq(Dates.Millisecond(typemin(Int32))) @test roundtripeq(Dates.Second, Dates.Second(typemax(Int32)))