Skip to content

Commit

Permalink
Ignore URI::RFC3986_PARSER.escape deprecation warning
Browse files Browse the repository at this point in the history
`uri` switched the default parser from RFC2396 to RFC3986. The new parser emits a deprecation
warning on a few methods and delegates them to RFC2396. See ruby/uri#114.

The selenium-webdriver gem [calls `URI::RFC3986_PARSER.escape`][webdriver-callsite], which is now deprecated.
Until this is fixed in selenium-webdriver, ignore the warning.

[webdriver-callsite]: https://github.com/SeleniumHQ/selenium/blob/trunk/rb/lib/selenium/webdriver/remote/bridge.rb#L679
  • Loading branch information
adrianna-chang-shopify committed Nov 11, 2024
1 parent 74849f3 commit 9196e5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ module Warning
class << self
def warn(message)
return super if message.start_with?("Rack::Handler is deprecated")
# To be removed once warning is fixed in selenium-webdriver
# This is noisy, so ignoring completely for now.
return if message.match?("URI::RFC3986_PARSER.escape is obsoleted.")

raise message.to_s
end
Expand Down

0 comments on commit 9196e5f

Please sign in to comment.