Skip to content

Commit 1d832b5

Browse files
committed
Improve test-flow readability
1 parent c81ef12 commit 1d832b5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_iotools.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ def test_filehandle(tmpdir):
2727
# print(tmpname)
2828
tmphandle = open(str(tmpfile), "w")
2929
print(type(tmphandle))
30+
3031
assert isinstance(tmpname, str)
3132
print("tmpname is str-like 🦋")
33+
3234
assert isinstance(tmphandle, file_types)
3335
print("tmphandle is file/io-like 🦋")
36+
3437
assert isinstance(filehandle(tmpname), file_types)
3538
print("filehandle(tmpname) is file/io-like 🦋")
39+
3640
assert isinstance(filehandle(tmphandle, "w"), file_types)
3741
print("filehandle(tmphandle) is file/io-like 🦋")
3842

0 commit comments

Comments
 (0)