Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1a1a9ab
Drop unused requirements.txt
filmor Feb 16, 2026
4ca65d6
Bump astral-sh/setup-uv from 6 to 7 (#2656)
dependabot[bot] Oct 28, 2025
0856eb4
Bump actions/checkout from 5 to 6 (#2663)
dependabot[bot] Nov 24, 2025
a7d0842
Only init/shutdown Python once
filmor Oct 22, 2025
f6ff431
Disable NUnit analyzer for now
filmor Oct 23, 2025
9fc08f3
Reset conversions after each codec test
filmor Oct 23, 2025
a8e5020
Remove shutdown from most tests, disable the rest for now
filmor Oct 23, 2025
0a6062e
Use python -m pytest, path seemingly not properly updated
filmor Oct 26, 2025
6b1bb92
Remove unused architecture from uv env activation
filmor Oct 26, 2025
d4d1768
Synchronize the environment
filmor Oct 26, 2025
40a3db7
Include the probed PythonDLL value in the exception
filmor Dec 7, 2025
96f428f
Use the actual pytest runner
filmor Dec 7, 2025
5459ac7
Move tests that require reinit and only run on .NET Framework
filmor Dec 8, 2025
abb6855
Bump NUnit3TestAdapter from 5.2.0 to 6.0.0 (#2667)
dependabot[bot] Dec 8, 2025
9882788
Fix line endings
filmor Dec 9, 2025
dc5c6c4
Add previous commit to ignore file
filmor Dec 9, 2025
caac33d
Initial 3.14 commit
filmor Aug 9, 2025
e10d333
Apply alignment fix
filmor Oct 22, 2025
e976558
Disable problematic GC tests
filmor Oct 22, 2025
65af098
Set ht_token to NULL in Python 3.14
filmor Oct 24, 2025
e244503
Fix lockfile
filmor Oct 26, 2025
8e0333d
Assign True instead of None to __clear_reentry_guard__
filmor Dec 6, 2025
cd108b8
Disable the three remaining failing tests
filmor Dec 6, 2025
698bf00
Take the GIL in sequence and list wrappers
filmor Dec 7, 2025
908e13b
Move tp_clear workaround to .NET
filmor Dec 7, 2025
c851b3a
Skip coreclr embedded tests for now
filmor Dec 7, 2025
08550d0
Workaround for blocked PyObject_GenericSetAttr in metatypes
filmor Dec 7, 2025
f1d90f3
Revert changes to tests
filmor Dec 7, 2025
a47555d
Bump macos image version and add arm64
filmor Dec 8, 2025
cebfd15
Reenable .NET Core embedding tests
filmor Dec 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disable problematic GC tests
  • Loading branch information
filmor committed Feb 24, 2026
commit e9765585b3d7497e49ee0c35a17bb1792b91170e
4 changes: 4 additions & 0 deletions tests/test_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

"""Test CLR method support."""

import sys
import System
import pytest
from Python.Test import MethodTest
Expand Down Expand Up @@ -941,6 +942,7 @@ def test_getting_generic_method_binding_does_not_leak_ref_count():
refCount = sys.getrefcount(PlainOldClass().GenericMethod[str])
assert refCount == 1

@pytest.mark.skipif(sys.version_info >= (3, 14), reason="Test skipped on Python 3.14 and above")
def test_getting_generic_method_binding_does_not_leak_memory():
"""Test that managed object is freed after calling generic method. Issue #691"""

Expand Down Expand Up @@ -982,6 +984,7 @@ def test_getting_overloaded_method_binding_does_not_leak_ref_count():
refCount = sys.getrefcount(PlainOldClass().OverloadedMethod.Overloads[int])
assert refCount == 1

@pytest.mark.skipif(sys.version_info >= (3, 14), reason="Test skipped on Python 3.14 and above")
def test_getting_overloaded_method_binding_does_not_leak_memory():
"""Test that managed object is freed after calling overloaded method. Issue #691"""

Expand Down Expand Up @@ -1024,6 +1027,7 @@ def test_getting_method_overloads_binding_does_not_leak_ref_count():
assert refCount == 1

@pytest.mark.xfail(reason="Fails locally, need to investigate later", strict=False)
@pytest.mark.skipif(sys.version_info >= (3, 14), reason="Test skipped on Python 3.14 and above")
def test_getting_method_overloads_binding_does_not_leak_memory():
"""Test that managed object is freed after calling overloaded method. Issue #691"""

Expand Down
2 changes: 2 additions & 0 deletions tests/test_subclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

"""Test sub-classing managed types"""

import sys
import System
import pytest
from Python.Test import (IInterfaceTest, SubClassTest, EventArgsTest,
Expand Down Expand Up @@ -303,6 +304,7 @@ def __init__(self, i, s):
assert calls[0][1] == "foo"

# regression test for https://github.com/pythonnet/pythonnet/issues/1565
@pytest.mark.skipif(sys.version_info >= (3, 14), reason="Test skipped on Python 3.14 and above")
def test_can_be_collected_by_gc():
from Python.Test import BaseClass

Expand Down