diff options
Diffstat (limited to 'rt/t/api/i18n_guess.t')
-rw-r--r-- | rt/t/api/i18n_guess.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rt/t/api/i18n_guess.t b/rt/t/api/i18n_guess.t index a64b295..0a99011 100644 --- a/rt/t/api/i18n_guess.t +++ b/rt/t/api/i18n_guess.t @@ -4,8 +4,8 @@ use warnings; use RT::Test tests => 16; -use constant HAS_ENCODE_GUESS => do { local $@; eval { require Encode::Guess; 1 } }; -use constant HAS_ENCODE_DETECT => do { local $@; eval { require Encode::Detect::Detector; 1 } }; +use constant HAS_ENCODE_GUESS => Encode::Guess->require; +use constant HAS_ENCODE_DETECT => Encode::Detect::Detector->require; my $string = "\x{442}\x{435}\x{441}\x{442} \x{43f}\x{43e}\x{434}\x{434}\x{435}\x{440}\x{436}\x{43a}\x{430}"; |