Skip to content
Merged
Show file tree
Hide file tree
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
Fix a few more tests
  • Loading branch information
filmor committed Jun 19, 2020
commit d19b81335e64b685711dbb08429975fd2afaf2ea
9 changes: 4 additions & 5 deletions src/tests/test_conversion.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-

"""Test CLR <-> Python type conversions."""

from __future__ import unicode_literals
import System
import operator
import pytest

import System
from Python.Test import ConversionTest, UnicodeString
from Python.Runtime import PyObjectConversions
from Python.Runtime.Codecs import RawProxyEncoder
Expand Down Expand Up @@ -541,7 +540,7 @@ def test_string_conversion():
test_unicode_str = u"안녕"
assert test_unicode_str == str(world.value)
assert test_unicode_str == str(world.GetString())
assert test_unicode_str == (world)
assert test_unicode_str == str(world)


def test_interface_conversion():
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_python_type_aliasing():
dict_.Add(1, 1)
assert dict_[1] == 1

dict_ = Dictionary[long, long]()
dict_ = Dictionary[int, int]()
assert dict_.Count == 0
dict_.Add(1, 1)
assert dict_[1] == 1
Expand Down