Skip to content

Commit 078a0f1

Browse files
author
Christopher Doris
committed
fix tests for backwards incompat
1 parent f896a22 commit 078a0f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/abstract.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
@test pylen(x) == 0
130130
end
131131
@testset "pydir" begin
132-
x = pytype("Foo", (), (foo=1, bar=2))()
132+
x = pytype("Foo", (), ["foo"=>1, "bar"=>2])()
133133
d = pydir(x)
134134
@test pycontains(d, "__class__")
135135
@test pycontains(d, "foo")

test/concrete.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ end
243243
x = pytype(pybuiltins.type)
244244
@test pyisinstance(x, pybuiltins.type)
245245
@test pyis(x, pybuiltins.type)
246-
x = pytype("Foo", (), (foo=1, bar=2))
246+
x = pytype("Foo", (), ["foo"=>1, "bar"=>2])
247247
@test pyisinstance(x, pybuiltins.type)
248248
@test pyeq(Bool, x.__name__, "Foo")
249249
@test pyeq(Bool, x.foo, 1)

0 commit comments

Comments
 (0)