Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify a locale in units tests #1039

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

stevedlawrence
Copy link
Member

Some unit tests do not specify a locale when creating certain objects, which causes the default system locale to be used. This can cause these tests to fail if run on a system with a different locale. This modifies those tests to specify a locale and ignore the system locale.

This also modifies the GitHub actions so some jobs are run with non-US locales so that we can detect if new tests are added with locale dependent behaviors.

Note that commit 1a0954a modified integration tests to not be locale dependent--only a small number of unit tests need fixing.

DAFFODIL-2599, DAFFODIL-2612

Some unit tests do not specify a locale when creating certain objects,
which causes the default system locale to be used. This can cause these
tests to fail if run on a system with a different locale. This modifies
those tests to specify a locale and ignore the system locale.

This also modifies the GitHub actions so some jobs are run with
non-US locales so that we can detect if new tests are added with
locale dependent behaviors.

Note that commit 1a0954a modified integration tests to not be locale
dependent--only a small number of unit tests need fixing.

DAFFODIL-2599, DAFFODIL-2612
Copy link
Contributor

@mbeckerle mbeckerle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Contributor

@tuxji tuxji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Fellow contributors, please review PRs - I'm still on vacation.

@olabusayoT olabusayoT merged commit a29eaea into apache:main Jul 13, 2023
@stevedlawrence stevedlawrence deleted the daffodil-2599-non-en-lang branch July 19, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants