Skip to content

Commit

Permalink
Update test_environment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz authored Nov 30, 2024
1 parent 8048764 commit 8ba7529
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions amplpy/tests/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ def test_environment_initialization(self):
self.assertEqual("binary_name_2", env.get_bin_name())

def test_environment(self):
from amplpy import Environment, AMPL
from amplpy import Environment #, AMPL

#os.environ["PYTHONIOENCODING"] = "utf-8"
for name, value in os.environ.items():
print("{0}: {1}".format(name, value))

#os.environ["USER1"] = "Filipe Brandão"
os.environ["USER1"] = "Filipe Brandão"
env1 = Environment()
env2 = Environment(os.curdir)
self.assertEqual(env2.get_bin_dir(), os.curdir)
Expand All @@ -40,8 +40,8 @@ def test_environment(self):
self.assertEqual(env2["MyEnvVar"], None)
d = dict(env1)
self.assertEqual(d["MyEnvVar"], "TEST")
ampl = AMPL(Environment())
ampl.close()
#ampl = AMPL(Environment())
#ampl.close()

def test_environment2(self):
from amplpy import Environment, AMPL
Expand Down

0 comments on commit 8ba7529

Please sign in to comment.