Skip to content

Commit

Permalink
Make test_bitmap_conversion work under acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
denisenkom committed Mar 2, 2024
1 parent 6eb7c58 commit 391b5af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import twain.utils

from PIL import Image
Expand All @@ -8,7 +9,7 @@ def test_bitmap_conversion():
Test device independent bitmap in-memory conversion
"""
# Create test image
test_image_path = "SMPTE_Color_Bars.bmp"
test_image_path = os.path.join(os.path.dirname(__file__), "SMPTE_Color_Bars.bmp")
img = Image.open(test_image_path)
print(img.mode)
# Load it as raw bytes
Expand Down

0 comments on commit 391b5af

Please sign in to comment.