rdb
41e4cf5d11
event: Fix `await gather()` returning first item instead of tuple
...
Fixes #1738
2025-07-28 14:58:42 +02:00
rdb
6010c711c0
tests: Add bin dir to PATH when running FreezeTool test
2024-10-30 14:14:25 +01:00
rdb
8c8cbeea98
linmath: For repr, use as much precision as needed for roundtrip
...
Will use as few digits as is necessary to ensure that round-tripping the same number with pstrtod will result in the same vector. This prevents eg. 3.3 formatting as 3.29999995 while still ensuring that two floats that are not equal (other than nan) are guaranteed to have a different string representation.
Uses a hacky pftoa function that can be abandoned as soon as we adopt C++17, which has to_chars that does what we need
Fixes #1671
2024-08-07 17:24:11 +02:00
rdb
b6ec48b27c
Fix invalid metadata version 2.0 (should be 2.1)
2024-05-28 22:28:37 +02:00
rdb
8c74919a8b
dgui: Make copy of mutable default value
...
Fixes #1587
2024-01-23 14:51:44 +01:00
rdb
edf4b7d448
tests: Also skip Cg unit tests on arm64 reporting as aarch64
...
[skip ci]
2023-10-22 12:24:33 +02:00
rdb
3059f8f76b
tests: Add site.py file for deploy-stub test
2023-10-15 16:23:02 +02:00
rdb
cb7f25f59c
tests: Fix an issue running tests with some Python 3.4 setups
2023-10-15 16:21:30 +02:00
rdb
479774477b
tests: Compat w/ older pytest by using tmpdir instead of tmp_path
2023-10-15 14:48:01 +02:00
rdb
1db6dbc166
tests: Don't cache loaded test model
2023-10-14 21:24:22 +02:00
rdb
f9c213fcbb
tests: Run runtime executable generated by FreezeTool test
2023-10-14 17:35:16 +02:00
rdb
b2465c3b38
tests: Fix running tests on Windows and with Python 2.7
2023-10-14 17:31:35 +02:00
rdb
972c0009ac
workflow: Add setuptools as requirement when testing Python 3.12
2023-10-14 11:29:02 +02:00
rdb
c1c035d5c9
showbase: Switch Loader entry point detection to importlib.metadata
...
Only in Python 3.8 and up, where this module is available, otherwise it falls back to pkg_resources
Add unit test for custom entry point loaders
2023-10-14 11:27:46 +02:00
rdb
f24a18f45e
tests: Add unit test for `Freezer.generateRuntimeFromStub`
2023-10-14 09:55:37 +02:00
rdb
2a5228b05f
Fix compatibility with Python 3.12 by removing use of imp module
...
Some modules (such as VFSImporter, and various modules in direct.p3d that depend on it) are still unavailable.
2023-10-13 13:21:34 +02:00
rdb
225b577ccd
tests: Skip Cg tests on arm64 machines
2023-10-13 10:55:17 +02:00
Mitchell Stokes
893f5ce492
Fix assert on Py_SIZE(long) when using Python 3.12
...
Starting with Python 3.12, passing a PyLong into Py_SIZE() triggers an
assertion. PyLong (and the whole C API) is transitioning to be more
opaque and expose fewer implementation details.
2023-10-13 10:54:33 +02:00
rdb
3f3819e7fa
tests: Further expand on tools tests
2023-08-03 13:21:38 +02:00
rdb
4537540820
tests: Look for tools in proper location without relying on PATH
2023-08-02 16:45:40 +02:00
rdb
1cb2554c48
tests: Test that tools run when testing wheels
...
Intended to catch issues like #1504
2023-08-02 16:36:04 +02:00
rdb
82a79acdd5
tests: Fix OverflowError in test_format_arrays on 32-bit
...
This is actually a bug in interrogate - it's converting an unsigned size_t via Py_ssize_t, which is not correct. However, it's a bunch of trouble to fix that.
Cherry-picked from 84ada4d66b
2023-02-24 22:07:38 +01:00
rdb
2e7dc9e4f4
tests: Add unit test for GeomVertexFormat arrays list
2023-02-20 19:05:37 +01:00
rdb
896346b99f
gobj: Implement `copy.deepcopy()` for Texture class
...
Actually ensures that the underlying RAM images are really fully unique.
2022-12-19 16:22:33 +01:00
rdb
e67cd74725
express: Implement `copy.deepcopy()` for PointerToArray
...
It actually makes a unique copy of the underlying array.
2022-12-19 16:22:00 +01:00
rdb
41f0c9d48d
pgraph: Support None as second arg of replace_texture/replace_material
...
This removes the relevant texture or material
2022-12-04 19:24:04 +01:00
rdb
d621df47ac
prc: Fix bf-cbc encryption/decryption regression with OpenSSL 3.0
...
Loads the legacy provider to continue supporting this algorithm
2022-12-04 19:22:26 +01:00
rdb
0220a43ce0
shader: Fix support for `#pragma include <example.glsl>` in GLSL
2022-11-09 17:20:11 +01:00
rdb
4c6df54d6f
tests: Fix failing window unit test on macOS
...
Fixes #804 (together with previous commit 979f194f49 )
2022-10-29 18:47:15 +02:00
rdb
979f194f49
tests: Load either 120 or 150 GLSL shaders depending on capabilities
...
Addresses part of #804
2022-10-29 18:46:59 +02:00
rdb
a111bb4442
tests: skip auto-shader tests if Cg shaders are not supported
...
Backport of 57b0be8647
2022-10-29 18:16:58 +02:00
Stephen A. Imhoff
33691d72ec
bullet: Fix assertion when reconstructing BulletConvexHullShape from bam
...
Fixes #1251
Closes #1252
2022-06-29 17:06:19 +02:00
rdb
d65ca1edd6
pgraph: Fix nodes with same key but diff value getting flattened
...
This was a regression from 69b3468b2c
2022-01-05 08:14:08 +01:00
rdb
f30019af13
tests: xfail vector floor division tests on Windows
...
Can't figure this one out for now.
2021-08-03 15:49:11 +02:00
rdb
5804c663a9
tests: Backport unit test fix from c0d3491223
2021-06-01 11:47:19 +02:00
rdb
2386e80448
linmath: Backport support for floor division to 1.10
...
Backport of 8944737844
(Also fixes return type of `__pow__` to always be derived class)
2021-06-01 10:45:56 +02:00
rdb
4e0e945279
linmath: Backport round(), floor(), ceil() support for vectors
...
See #821
2021-06-01 10:23:58 +02:00
rdb
8372b8150a
gobj: Cube map sampling support in TexturePeeker
...
Closes #1098
Co-authored-by: Mitchell Stokes <mogurijin@gmail.com>
2021-03-24 12:50:42 +01:00
rdb
8bde2f2b1b
tests: Add unit tests for GeomPrimitive::offset_vertices()
2021-03-22 22:04:08 +01:00
rdb
3732d3f1e6
PythonUtil: Fix Python 3 next() for SerialNumGen, AlphabetCounter
2021-03-22 21:49:58 +01:00
rdb
064e0383be
event: Allow AsyncFuture to store arbitrary PyObject result
2021-03-01 19:16:22 +01:00
Stephen Imhoff
a9f3940577
Add bullet ghost node test
2021-02-05 20:31:01 +00:00
rdb
a5a0809949
gobj: Support integer texture formats in TexturePeeker
2021-01-17 15:27:19 +01:00
rdb
3479c6eee2
tests: Add unit tests for GLSL usampler/isamspler/uimage/iimage
2021-01-17 12:13:59 +01:00
rdb
f20d859fe2
pgraph: Fix bug passing non-tuple sequence to shader input
2021-01-16 14:05:43 +01:00
rdb
a84f1b5595
express: distinguish between null vs empty in CPTA pickle as well
2021-01-02 02:22:06 +01:00
rdb
c81c506df3
express: Fix PointerToArray comparison operator
2021-01-01 17:54:09 +01:00
rdb
b2462c1d8c
express: Support pickling PointerToArray objects
2021-01-01 17:42:30 +01:00
rdb
e755f87130
pgraph: Add pickling for LoaderFileTypeRegistry
...
Useful to test that pickling singletons works
2021-01-01 17:08:55 +01:00
rdb
3a5201fd65
tests: Add tests for pickling DoubleBitMask
2021-01-01 17:08:34 +01:00