tests: revert modification to ARGV at end of test
Similar to 6fc1747e0550545b4fe80f5a1854d16dd2b08afe. I hadn't seen any test failures caused by this, but I noticed it in the process of trackign that down and it's an accident waiting to happen.
This commit is contained in:
parent
6fc1747e05
commit
366ee0b267
@ -61,6 +61,8 @@ class InstallTests < Homebrew::TestCase
|
|||||||
assert_equal 3, bin.children.length
|
assert_equal 3, bin.children.length
|
||||||
assert_predicate f.prefix/".brew/testball.rb", :readable?
|
assert_predicate f.prefix/".brew/testball.rb", :readable?
|
||||||
end
|
end
|
||||||
|
ensure
|
||||||
|
ARGV.reject! { |a| a == "--with-invalid_flag" }
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_bottle_unneeded_formula_install
|
def test_bottle_unneeded_formula_install
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user