Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogabrielsson committed Nov 21, 2024
1 parent eabecbd commit 6a06a0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/file/io/test_wsidicom_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def test_write_unencapsulated_pixel_data(
filepath, transfer_syntax, frame_count, bits, tile_size, samples_per_pixel
) as read_file:
read_table_type = read_file.offset_table_type
read_frame_positions = read_file.frame_index.index
read_frame_positions = read_file.frame_index
assert read_table_type == OffsetTableType.NONE
if transfer_syntax == ImplicitVRLittleEndian:
offset = 8
Expand Down
2 changes: 1 addition & 1 deletion wsidicom/file/io/wsidicom_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
self.close()

def __str__(self) -> str:
return f"{type(self).__name__}({self._stream.name})"
return f"{type(self).__name__}({self._filepath})"

@property
def owned(self) -> bool:
Expand Down

0 comments on commit 6a06a0b

Please sign in to comment.