forked from snakemake/snakemake
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This replicates snakemake#2826 Unfortunately this test seems to currently crush the pytest test execution
- Loading branch information
Vito Zanotelli
committed
Apr 19, 2024
1 parent
8465818
commit d9bb2d7
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
rule: | ||
log: | ||
'log.bin' | ||
run: | ||
import pickle | ||
with open(log[0], 'wb') as f: | ||
# Write anything binary to the file | ||
# that cannot be interpreted as unicode | ||
# dumping the log object was an easy way to do this | ||
pickle.dump(log, f) | ||
# make this test fail | ||
a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters