rdb
e4e5d75df7
tests: Fix mypy, Windows test failures
2025-07-28 22:47:16 +02:00
rdb
bd4b3dd1a7
showbase: Rewrite VFSImporter for newer Python import system
...
Fixes #1718
2025-07-28 20:35:00 +02:00
WMOkiishi
8de98592ca
showbase: Annotate basic `Loader` methods ( #1723 )
2025-02-19 18:59:19 +01:00
rdb
e43dc87df5
Fix unit test failures on Python 3.13
2024-12-14 15:25:03 +01:00
rdb
ad57762e9f
Merge branch 'release/1.10.x'
2024-08-07 22:34:08 +02:00
rdb
b6ec48b27c
Fix invalid metadata version 2.0 (should be 2.1)
2024-05-28 22:28:37 +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
a6ab238abc
Merge branch 'release/1.10.x' into incoming
2023-10-14 21:35:00 +02:00
rdb
1db6dbc166
tests: Don't cache loaded test model
2023-10-14 21:24:22 +02:00
rdb
b2465c3b38
tests: Fix running tests on Windows and with Python 2.7
2023-10-14 17:31:35 +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
WMOkiishi
f7f3179a89
Move test code from across `direct` to proper test modules
...
Closes #1480
2023-08-02 08:37:51 +02:00
rdb
eb6eb9f1dd
Merge branch 'release/1.10.x'
2021-03-24 13:58:00 +01:00
rdb
3732d3f1e6
PythonUtil: Fix Python 3 next() for SerialNumGen, AlphabetCounter
2021-03-22 21:49:58 +01:00
rdb
54b93116e8
Merge branch 'release/1.10.x'
2020-09-16 10:59:59 +02:00
rdb
c646924f03
tests: remove occasionally-failing PythonUtil.weightedChoice test
...
It does not test a behavior of this function that we support, anyway.
2020-09-14 11:01:01 +02:00
rdb
d799a09002
cleanup: Remove support for EOL versions of Python
...
Fixes #905
2020-04-26 20:07:56 +02:00
rdb
ba010168cf
tests: more improvements to test suite coverage
2020-04-25 14:44:43 +02:00
rdb
88f8071dfc
tests: add unit tests for direct.showbase.Loader.Loader class
2019-08-22 10:45:36 +02:00
pythonengineer
46a3a72029
PythonUtil: weightedChoice should throw IndexError on empty list
...
Also includes a unit test.
Closes #682
2019-07-15 19:39:31 +02:00
rdb
0c5546bcb0
tests: add unit tests for Audio3DManager sound velocity
2019-01-06 09:32:41 +01:00
rdb
f986f8de1b
showbase: add back clampScalar and PriorityCallbacks to PythonUtil
...
These were removed by 88dbb31daa under the assumption that they were not used, but it has recently come to my attention that there is still code out there that uses these.
PriorityCallbacks has been updated to be compatible with Python 3 by only comparing the priority, rather than the (priority, callback) tuple. This also has the side-effect of ditching the bisect dependency.
Also moves testing code from the source to the unit tests.
2018-04-21 11:43:46 +02:00