[ruby-trunk - Bug #6774][Open] test failures when *_proxy already set

Issue #6774 has been reported by znz (Kazuhiro NISHIYAMA).


Bug #6774: test failures when *_proxy already set
https://bugs.ruby-lang.org/issues/6774

Author: znz (Kazuhiro NISHIYAMA)
Status: Open
Priority: Normal
Assignee: znz (Kazuhiro NISHIYAMA)
Category: test
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-07-23 trunk 36494) [x86_64-linux]

他の組み合わせでもおきますが、 proxy 関連の環境変数が設定されていると test_find_proxy が失敗します。

% env -u http_proxy -u https_proxy ftp_proxy= ruby -v
test/uri/test_generic.rb
ruby 2.0.0dev (2012-07-23 trunk 36494) [x86_64-linux]
Run options:

Running tests:

[ 3/12] URI::TestGeneric#test_find_proxy = 0.00 s

  1. Failure:
    test_find_proxy(URI::TestGeneric) [test/uri/test_generic.rb:740]:
    Expected #<URI::Generic:0x007fbdb6c16e40 URL:> to be nil.

Finished tests in 0.015542s, 772.1030 tests/s, 19624.2844 assertions/s.
12 tests, 305 assertions, 1 failures, 0 errors, 0 skips