diff --git a/.ci_support/environment-docs.yml b/.ci_support/environment-docs.yml index 5491ce5e9..992965c8d 100644 --- a/.ci_support/environment-docs.yml +++ b/.ci_support/environment-docs.yml @@ -12,7 +12,7 @@ dependencies: - h5io_browser =0.1.6 - h5py =3.12.1 - jinja2 =3.1.5 -- monty =2024.12.10 +- monty =2025.1.9 - numpy =2.2.2 - pandas =2.2.3 - pint =0.24.4 diff --git a/.ci_support/environment-mini.yml b/.ci_support/environment-mini.yml index 15810b10d..47a232dc0 100644 --- a/.ci_support/environment-mini.yml +++ b/.ci_support/environment-mini.yml @@ -4,7 +4,7 @@ dependencies: - cloudpickle =3.1.1 - h5io_browser =0.1.6 - h5py =3.12.1 -- monty =2024.12.10 +- monty =2025.1.9 - numpy =2.2.2 - pandas =2.2.3 - psutil =6.1.1 diff --git a/.ci_support/environment-old.yml b/.ci_support/environment-old.yml index 9df7492d0..122806c14 100644 --- a/.ci_support/environment-old.yml +++ b/.ci_support/environment-old.yml @@ -6,7 +6,7 @@ dependencies: - h5io_browser =0.0.14 - h5py =3.6.0 - jinja2 =2.11.3 -- monty =2021.3.3 +- monty =2025.1.3 - numpy =1.23.5 - pandas =2.0.0 - pint =0.18 diff --git a/.ci_support/environment.yml b/.ci_support/environment.yml index 1ae4791b7..78f764214 100644 --- a/.ci_support/environment.yml +++ b/.ci_support/environment.yml @@ -10,7 +10,7 @@ dependencies: - h5io_browser =0.1.6 - h5py =3.12.1 - jinja2 =3.1.5 -- monty =2024.12.10 +- monty =2025.1.9 - numpy =2.2.2 - pandas =2.2.3 - pint =0.24.4 diff --git a/binder/environment.yml b/binder/environment.yml index 981963398..50d76a9c7 100644 --- a/binder/environment.yml +++ b/binder/environment.yml @@ -9,7 +9,7 @@ dependencies: - h5io_browser =0.1.6 - h5py =3.12.1 - jinja2 =3.1.5 -- monty =2024.12.10 +- monty =2025.1.9 - numpy =2.2.2 - pandas =2.2.3 - pint =0.24.4 diff --git a/pyproject.toml b/pyproject.toml index 0dce7da3e..582760c66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ dependencies = [ "h5io_browser==0.1.6", "h5py==3.12.1", "numpy==2.2.2", - "monty==2024.12.10", + "monty==2025.1.9", "pandas==2.2.3", "psutil==6.1.1", "pyfileindex==0.0.33", diff --git a/tests/unit/job/test_genericJob.py b/tests/unit/job/test_genericJob.py index 256de7fcf..37495ceeb 100644 --- a/tests/unit/job/test_genericJob.py +++ b/tests/unit/job/test_genericJob.py @@ -98,7 +98,7 @@ def test_compress_file_list(self): os.makedirs(ham.working_directory, exist_ok=True) for file in file_lst: with open(os.path.join(ham.working_directory, file), "w") as f: - f.writelines(["content: " + file]) + f.writelines(["content: " + file + "\n"]) for file in file_lst: self.assertTrue(file in ham.files.list()) for file in file_lst: @@ -115,7 +115,10 @@ def test_compress_file_list(self): ) with contextlib.redirect_stdout(io.StringIO(newline=os.linesep)) as f: ham.files.file_to_compress.tail() - self.assertEqual(f.getvalue().replace("\r", ""), "content: file_to_compress\n") + self.assertEqual( + f.getvalue().replace("\r", "").replace("\n", ""), + "content: file_to_compress", + ) ham.remove() def test_job_name(self): @@ -762,7 +765,7 @@ def test_tail(self): job.decompress() content = ["Content", "More", "Lines"] with open(os.path.join(job.working_directory, "test_file"), "w") as f: - f.write(os.linesep.join(content)) + f.write(os.linesep.join(content) + "\n") for i in range(len(content)): with self.subTest(i=i):