Skip to content

Commit 9392475

Browse files
authored
fix: crash with 'hdf5' store part of the pytest plugin (#137)
* Fix issu with 'anytest' part of the pytest plugin, which tried to save macro files which no longer there * Update versions
1 parent ac379fe commit 9392475

5 files changed

Lines changed: 8 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# AnyPyTools Change Log
22

3+
## v1.20.4
4+
5+
* Fix crash with pytest plugin when saving output to h5 files.
6+
7+
38
## v1.20.3
49

510
* Fixed a bug where `ctrl-c` events were not propagated and were silenced. This

anypytools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"NORMAL_PRIORITY_CLASS",
3737
]
3838

39-
__version__ = "1.20.3"
39+
__version__ = "1.20.4"
4040

4141

4242
def print_versions():

anypytools/pytest_plugin.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -489,15 +489,6 @@ def save_output_files(self, src_folder, target_folder, result, hdf5files):
489489

490490
target_log = target_folder / "logfile.txt"
491491
shutil.copyfile(src_log, target_log)
492-
src_macrofile = src_log.with_suffix(".anymcr")
493-
target_macro = target_folder / "macro.anymcr"
494-
shutil.copyfile(src_macrofile, target_macro)
495-
496-
with open(target_folder / "run.bat", "w") as f:
497-
anybodygui = re.sub(
498-
r"(?i)anybodycon\.exe", "anybody.exe", pytest.anytest.ams_path
499-
)
500-
f.write(f'"{anybodygui}" -m "%~dp0{target_macro.name}"')
501492

502493
def repr_failure(self, excinfo):
503494
"""Print a representation when a test failes."""

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ anypytools = {path= "."}
1616

1717
[package]
1818
name = "anypytools"
19-
version="1.20.3"
19+
version="1.20.4"
2020

2121
[package.build]
2222
backend = { name = "pixi-build-python", version = "*" }

0 commit comments

Comments
 (0)