mirror of
https://github.com/panda3d/panda3d.git
synced 2025-12-30 19:49:46 -06:00
Fix unit test failures on Python 3.13
This commit is contained in:
@@ -29,7 +29,7 @@ get_owner() const {
|
||||
PyObject *strong_ref;
|
||||
int result = 0;
|
||||
if (owner != nullptr) {
|
||||
PyWeakref_GetRef(owner, &strong_ref);
|
||||
result = PyWeakref_GetRef(owner, &strong_ref);
|
||||
}
|
||||
if (result > 0) {
|
||||
return strong_ref;
|
||||
|
||||
@@ -120,9 +120,10 @@ fnrgl = fnargle:FnargleLoader
|
||||
sys.path = [str(tmp_path), platstdlib, stdlib]
|
||||
|
||||
Loader._loadedPythonFileTypes = False
|
||||
loader = Loader()
|
||||
|
||||
# base parameter is only used for audio
|
||||
loader = Loader(None)
|
||||
if not Loader._loadedPythonFileTypes:
|
||||
Loader._loadPythonFileTypes()
|
||||
assert Loader._loadedPythonFileTypes
|
||||
|
||||
# Should be registered, not yet loaded
|
||||
|
||||
Reference in New Issue
Block a user