From 11cbf9eab91037ecabb8bba49252bc381e6f39e0 Mon Sep 17 00:00:00 2001 From: Jurgen Lentz Date: Mon, 11 Nov 2024 17:21:59 +0100 Subject: [PATCH] set utf-8 encoding for tests --- amplpy/tests/test_environment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amplpy/tests/test_environment.py b/amplpy/tests/test_environment.py index 7758779..0218ca9 100644 --- a/amplpy/tests/test_environment.py +++ b/amplpy/tests/test_environment.py @@ -23,6 +23,8 @@ def test_environment_initialization(self): def test_environment(self): from amplpy import Environment, AMPL + os.environ["PYTHONIOENCODING"] = "utf-8" + env1 = Environment() env2 = Environment(os.curdir) self.assertEqual(env2.get_bin_dir(), os.curdir)