Bug #6774

test failures when *_proxy already set

Added by Kazuhiro NISHIYAMA about 3 years ago. Updated about 3 years ago.

[ruby-dev:45994]
Status:Closed
Priority:Normal
Assignee:Kazuhiro NISHIYAMA
ruby -v:ruby 2.0.0dev (2012-07-23 trunk 36494) [x86_64-linux] Backport:

Description

他の組み合わせでもおきますが、 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 # 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

Associated revisions

Revision 36496
Added by kazu about 3 years ago

fix failures

  • test/uri/test_generic.rb (URI#with_env): unset proxy related env
    variables. [Bug #6774]

  • test/uri/test_generic.rb (URI#test_find_proxy): fix failures
    when proxy related env variables already set. [Bug #6774]

Revision 36496
Added by kazu about 3 years ago

fix failures

  • test/uri/test_generic.rb (URI#with_env): unset proxy related env
    variables. [Bug #6774]

  • test/uri/test_generic.rb (URI#test_find_proxy): fix failures
    when proxy related env variables already set. [Bug #6774]

History

#1 Updated by Kazuhiro NISHIYAMA about 3 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r36496.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


fix failures

  • test/uri/test_generic.rb (URI#with_env): unset proxy related env
    variables. [Bug #6774]

  • test/uri/test_generic.rb (URI#test_find_proxy): fix failures
    when proxy related env variables already set. [Bug #6774]

Also available in: Atom PDF