diff --git a/test/inets_tests.erl b/test/inets_tests.erl index d46b3ad2..6f728ffc 100644 --- a/test/inets_tests.erl +++ b/test/inets_tests.erl @@ -4,8 +4,8 @@ -if(?OTP_RELEASE >= 21). -compile({parse_transform, otpbp_pt}). --if(?OTP_RELEASE =:= 23 orelse ?OTP_RELEASE =:= 24). --compile(nowarn_deprecated_function). +-if(?OTP_RELEASE >= 23). +-compile({nowarn_deprecated_function, [{http_uri, decode, 1}, {http_uri, encode, 1}]}). -endif. -include_lib("eunit/include/eunit.hrl"). diff --git a/test/uri_string_tests.erl b/test/uri_string_tests.erl index ba6bdc4a..d1b10a7e 100644 --- a/test/uri_string_tests.erl +++ b/test/uri_string_tests.erl @@ -2,6 +2,12 @@ -compile({parse_transform, otpbp_pt}). +-ifdef(OTP_RELEASE). +-if(?OTP_RELEASE >= 23). +-compile({nowarn_deprecated_function, [{http_uri, decode, 1}, {http_uri, encode, 1}]}). +-endif. +-endif. + -include_lib("eunit/include/eunit.hrl"). normalize_test() ->