Skip to content

Fix the baseline image for test_text_position_offset_with_line.png - #4803

Merged
seisman merged 1 commit into
mainfrom
test/text-position
Aug 9, 2026
Merged

Fix the baseline image for test_text_position_offset_with_line.png#4803
seisman merged 1 commit into
mainfrom
test/text-position

Conversation

@seisman

@seisman seisman commented Aug 8, 2026

Copy link
Copy Markdown
Member

Related to #4801.

The baseline change is caused by an upstream GMT change, but I can't find the upstream PR (likely GenericMappingTools/gmt#8965).

@seisman seisman added this to the 0.20.0 milestone Aug 8, 2026
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog labels Aug 8, 2026
Comment thread pygmt/tests/test_text.py
Comment on lines +174 to +179
# TODO(GMT>=6.7.0): Remove the conditional filename when the minimum version is reached.
@pytest.mark.mpl_image_compare(
filename="test_text_position_offset_with_line.png"
if Version(__gmt_version__) >= Version("6.7.0")
else "test_text_position_offset_with_line_legacy.png"
)

@seisman seisman Aug 8, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use different baseline image based on GMT version, so that the test passes in both the Tests and Legacy Tests workflows.

@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Aug 8, 2026
@seisman
seisman merged commit 3971678 into main Aug 9, 2026
20 of 35 checks passed
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Aug 9, 2026
@seisman
seisman deleted the test/text-position branch August 9, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant