@@ -1914,11 +1914,28 @@ end
19141914 @test occursin (r" Updating `.+Manifest\. toml`" , readline (io))
19151915 @test occursin (r" \[ 7876af07\] ~ Example v\d\.\d\.\d `https://github.com/JuliaLang/Example.jl.git#master` ⇒ v\d\.\d\.\d " , readline (io))
19161916 # Removing registered version
1917+
19171918 Pkg. rm (" Example" ; status_io= io)
1918- @test occursin (r" Updating `.+Project.toml`" , readline (io))
1919- @test occursin (r" \[ 7876af07\] - Example v\d\.\d\.\d " , readline (io))
1920- @test occursin (r" Updating `.+Manifest.toml`" , readline (io))
1921- @test occursin (r" \[ 7876af07\] - Example v\d\.\d\.\d " , readline (io))
1919+ output = String (take! (io))
1920+ @test occursin (r" Updating `.+Project.toml`" , output)
1921+ @test occursin (r" \[ 7876af07\] - Example v\d\.\d\.\d " , output)
1922+ @test occursin (r" Updating `.+Manifest.toml`" , output)
1923+ @test occursin (r" \[ 7876af07\] - Example v\d\.\d\.\d " , output)
1924+
1925+ # Pinning a registered package
1926+ Pkg. add (" Example" )
1927+ Pkg. pin (" Example" ; status_io= io)
1928+ output = String (take! (io))
1929+ @test occursin (r" Updating `.+Project.toml`" , output)
1930+ @test occursin (r" \[ 7876af07\] ~ Example v\d\.\d\.\d ⇒ v\d\.\d\.\d ⚲" , output)
1931+ @test occursin (r" Updating `.+Manifest.toml`" , output)
1932+
1933+ # Free a pinned package
1934+ Pkg. free (" Example" ; status_io= io)
1935+ output = String (take! (io))
1936+ @test occursin (r" Updating `.+Project.toml`" , output)
1937+ @test occursin (r" \[ 7876af07\] ~ Example v\d\.\d\.\d ⚲ ⇒ v\d\.\d\.\d " , output)
1938+ @test occursin (r" Updating `.+Manifest.toml`" , output)
19221939 end
19231940 # Project Status API
19241941 isolate (loaded_depot= true ) do
0 commit comments