We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8ccf90 commit 4a6b004Copy full SHA for 4a6b004
2 files changed
bin/bugzilla
@@ -60,11 +60,11 @@ def to_encoding(ustring):
60
61
if hasattr(sys.version_info, "major") and sys.version_info.major >= 3:
62
return string
63
- else:
64
- preferred = locale.getpreferredencoding()
65
- if "PYTHON_BUGZILLA_TEST_SUITE" in os.environ:
66
- preferred = "UTF-8"
67
- return string.encode(preferred, 'replace')
+
+ preferred = locale.getpreferredencoding()
+ if _is_unittest:
+ preferred = "UTF-8"
+ return string.encode(preferred, 'replace')
68
69
70
def open_without_clobber(name, *args):
tests/__init__.py
@@ -14,7 +14,6 @@
14
from StringIO import StringIO
15
16
17
-os.environ["PYTHON_BUGZILLA_TEST_SUITE"] = "1"
18
_cleanup = []
19
20
0 commit comments