Skip to content

Commit

Permalink
Set explicit message locale to C to be able to match error messages w…
Browse files Browse the repository at this point in the history
…hen not running in english environments
  • Loading branch information
nicomen committed Oct 30, 2024
1 parent aac1207 commit 7a40d5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/Shutter/Draw/001_update_warning_text.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ use Locale::gettext;
use Test::More;
use Test::MockModule;

use POSIX qw(locale_h);
use locale;
setlocale(LC_MESSAGES, 'C'); # Allow non-English developers to match error messages

require_ok('Shutter::Draw::DrawingTool');

my $mock = Test::MockModule->new("Shutter::Draw::DrawingTool");
Expand Down

0 comments on commit 7a40d5d

Please sign in to comment.