8000 Add mp_length slot for .NET classes implementing ICollection/ICollection<T> by slide · Pull Request #994 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content

Add mp_length slot for .NET classes implementing ICollection/ICollection<T> #994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Dec 16, 2019
Prev Previous commit
Next Next commit
Fix module docstring and imports
  • Loading branch information
slide committed Nov 21, 2019
commit 90681d592a9e93ddc94b1a7c2ff637f096f1624f
5 changes: 1 addition & 4 deletions src/tests/test_mp_length.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# -*- coding: utf-8 -*-

"""Test CLR <-> Python type conversions."""
"""Test __len__ for .NET classes implementing ICollection/ICollection<T>."""

from __future__ import unicode_literals
import System
import pytest
from Python.Test import MpLengthCollectionTest, MpLengthExplicitCollectionTest, MpLengthGenericCollectionTest, MpLengthExplicitGenericCollectionTest

from ._compat import indexbytes, long, unichr, text_type, PY2, PY3

def test_simple___len__():
"""Test __len__ for simple ICollection implementers"""
import System
Expand Down
0