Skip to content

Commit

Permalink
ensure str(BufferedIOFile) is dependable in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicalNinjaDad committed Dec 15, 2023
1 parent bfa1fc8 commit 8665ae8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/majorver/test_BufferedIOFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ def test_equal_pathsresolved(copiedtestfiles):
fileA = BufferedIOFile(fileA)
assert fileA == symlink

@mark.copyfiles(('fileA',1))
def test_str(copiedtestfiles):
fileA = BufferedIOFile(copiedtestfiles.paths['fileA'][0])
assert str(fileA) == os.fspath(copiedtestfiles.paths['fileA'][0].absolute())

@mark.copyfiles(('fileA',1))
def test_symlink_raiseserror(copiedtestfiles):
fileA = copiedtestfiles.paths['fileA'][0]
Expand Down

0 comments on commit 8665ae8

Please sign in to comment.