Skip to content

LoadError: There was an error during testing #96

@GI501178767

Description

@GI501178767

Dear Mr. Jones,I am a new to Julia language. When I run the command line of " using Pkg, SeisIO; Pkg.test("SeisIO"),the error information appears like following:
Utils\test_units.jl units check that RandSeis uses valid UCUM units WARNING: both IOExtras and Base export "closewrite"; uses of it in module StreamRequest must be qualified WARNING: both IOExtras and Base export "closewrite"; uses of it in module ConnectionPool must be qualified ERROR: LoadError: There was an error during testing in expression starting at C:\Users\47136\.julia\packages\SeisIO.jl-1.2.1\test\Utils\test_units.jl:5 in expression starting at C:\Users\47136\.julia\packages\SeisIO.jl-1.2.1\test\runtests.jl:27 ERROR: Package SeisIO errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\Types.jl:69 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\Operations.jl:2012 [3] test @ C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\Operations.jl:1893 [inlined] [4] test(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}}) @ Pkg.API C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\API.jl:441 [5] test(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) @ Pkg.API C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\API.jl:156 [6] test(pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.API C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\API.jl:145 [7] #test#75 @ C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\API.jl:144 [inlined] [8] test @ C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\API.jl:144 [inlined] [9] #test#74 @ C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [inlined] [10] test(pkg::String) @ Pkg.API C:\Julia-1.9.0-rc2\share\julia\stdlib\v1.9\Pkg\src\API.jl:143 [11] top-level scope @ REPL[1]:1
It means there are something wrongs happen in the file "test_units.jl" and "runtests.jl" According to the information ,I also find the error information in "runtest.log",which notes me that "Test Failed at C:\Users\47136.julia\packages\SeisIO.jl-1.2.1\test\Utils\test_units.jl:7. Expression: vucum(u, v = 2)".Which makes me confused is that I have checked the function structure and the information about it. I could not sovle the problem upside,especially the expression "v=2" in function vucum().
I have to disturb you to teach me how to solve the problem,which will help me a lot. Thanks in advance. Blessings from China.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions