Uh oh!
There was an error while loading. Please reload this page.
Use the pytest-randomly plugin to run tests in random order - #2936
Use the pytest-randomly plugin to run tests in random order#2936seisman wants to merge 11 commits into
Conversation
seisman
commented
Jan 1, 2024
@weiji14 Randomly running the tests finds a minor bug in PR #2774. Some tests like below fail: ______________________test_virtualfile_from_matrix_slice______________________dtypes= ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', ...]
deftest_virtualfile_from_matrix_slice(dtypes):
""" Test transforming a slice of a larger array to virtual file dataset. """shape= (10, 6)
fordtypeindtypes:
>full_data=np.arange(shape[0] *shape[1], dtype=dtype).reshape(shape)
ETypeError: data type 'int8[pyarrow]'notunderstoodThe failures are because pygmt/pygmt/tests/test_clib_virtualfiles.py Lines 328 to 329 in 925e90e |
weiji14
commented
Jan 2, 2024
Good spotting, I opened a PR at #2941 to fix this. |
seisman
commented
Oct 10, 2024
Note to myself: This is the command to reproduce the errors stably If adding The region |
Save the content above into a test file Here are two normal scripts to understand the differences. Related to #1242 but is more complicated than that one. |
Description of proposed changes
Fixes #
Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version