Skip to content

Another shot at #495 #503

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
Jun 26, 2017
Merged
Changes from 1 commit
Commits
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
Rename tests
  • Loading branch information
Rickard Holmberg committed Jun 21, 2017
commit b29ae4dafcb28e8774ec93b596ed8bc1c9e47176
8 changes: 4 additions & 4 deletions src/tests/test_subclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_isinstance_check():
assert isinstance(x, System.Object)
assert isinstance(x, System.String)

def test_clr_subclass_with_init_args():
def test_namespace_and_init():
calls = []
class TestX(System.Object):
__namespace__ = "test_clr_subclass_with_init_args"
Expand All @@ -202,7 +202,7 @@ def __init__(self, *args, **kwargs):
assert calls[0][0] == (1,2,3)
assert calls[0][1] == {"foo":"bar"}

def test_clr_subclass_without_init_args():
def test_namespace_and_argless_init():
calls = []
class TestX(System.Object):
__namespace__ = "test_clr_subclass_without_init_args"
Expand All @@ -213,14 +213,14 @@ def __init__(self):
assert calls[0] == True


def test_clr_subclass_without_init():
def test_namespace_and_no_init():
class TestX(System.Object):
__namespace__ = "test_clr_subclass_without_init"
q = 1
t = TestX()
assert t.q == 1

def test_clr_subclass_init_from_clr():
def test_construction_from_clr():
import clr
calls = []
class TestX(System.Object):
Expand Down