We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f7831c + 9e645c4 commit 6bfd460Copy full SHA for 6bfd460
1 file changed
pytest_nunit/nunit.py
@@ -3,6 +3,7 @@
3
import os
4
import platform
5
import sys
6
+import warnings
7
8
from _pytest._code.code import ExceptionChainRepr
9
@@ -116,7 +117,11 @@ def _format_filters(filters_):
116
117
118
119
def _getlocale():
- language_code = locale.getdefaultlocale()[0]
120
+ # See https://github.com/pytest-dev/pytest-nunit/pull/73
121
+ with warnings.catch_warnings():
122
+ warnings.simplefilter("ignore")
123
+ language_code = locale.getdefaultlocale()[0]
124
+
125
if language_code:
126
return language_code
127
return "en-US"
0 commit comments