Skip to content

Commit 2e5ea05

Browse files
author
Christopher Doris
committed
use aqua tests
1 parent debb678 commit 2e5ea05

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

Project.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ authors = ["Christopher Doris <github.com/cjdoris>"]
44
version = "0.3.0"
55

66
[deps]
7-
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
87
Conda = "8f4d0f93-b110-5947-807f-2305c1781a2d"
98
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
109
IteratorInterfaceExtensions = "82899510-4779-5014-852e-03e436cf321d"
@@ -22,7 +21,6 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
2221
UnsafePointers = "e17b2a0c-0bdf-430a-bd0c-3a23cae4ff39"
2322

2423
[compat]
25-
Compat = "2.0.0, 3"
2624
Conda = "1.5"
2725
IteratorInterfaceExtensions = "1"
2826
JSON = "0.21"
@@ -34,7 +32,8 @@ UnsafePointers = "1"
3432
julia = "1"
3533

3634
[extras]
35+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3736
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3837

3938
[targets]
40-
test = ["Test"]
39+
test = ["Aqua", "Test"]

src/abstract/number.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ pyixor(x, y) = pynew(errcheck(@autopy x y C.PyNumber_InPlaceXor(getptr(x_), getp
185185
In-place or. `x = pyior(x, y)` is equivalent to `x |= y` in Python.
186186
"""
187187
pyior(x, y) = pynew(errcheck(@autopy x y C.PyNumber_InPlaceOr(getptr(x_), getptr(y_))))
188-
export pyiadd, pyisub, pyimul, pyimatmul, pyifloordiv, pyitruediv, pyimod, pyidivmod, pyilshift, pyirshift, pyiand, pyixor, pyior
188+
export pyiadd, pyisub, pyimul, pyimatmul, pyifloordiv, pyitruediv, pyimod, pyilshift, pyirshift, pyiand, pyixor, pyior
189189

190190
# power
191191
"""

src/utils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ module Utils
169169

170170
struct StaticString{T,N} <: AbstractString
171171
codeunits :: NTuple{N,T}
172+
StaticString{T,N}(codeunits::NTuple{N,T}) where {T,N} = new{T,N}(codeunits)
172173
end
173174

174175
function Base.convert(::Type{String}, x::StaticString)
@@ -192,7 +193,7 @@ module Utils
192193

193194
(::Type{T})(x::AbstractString) where {T<:StaticString} = convert(T, x)
194195

195-
function Base.iterate(x::StaticString, st=nothing)
196+
function Base.iterate(x::StaticString, st::Union{Nothing,Tuple}=nothing)
196197
if st === nothing
197198
s = String(x)
198199
z = iterate(s)

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using PythonCall, Test, Dates, Compat
1+
using PythonCall, Test, Dates, Aqua
2+
3+
Aqua.test_all(PythonCall)
24

35
@testset "PythonCall.jl" begin
46
@testset "abstract" begin

0 commit comments

Comments
 (0)