Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6034640

Browse files
authored
Remove error-prone text comparison in exception test (pythonnet#854)
1 parent817fe61 commit6034640

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

‎src/tests/test_exceptions.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,6 @@ def test_str_of_exception():
270270
withpytest.raises(FormatException)ascm:
271271
Convert.ToDateTime('this will fail')
272272

273-
e=cm.value
274-
# fix for international installation
275-
msg=text_type(e).encode("utf8")
276-
fnd=text_type('System.Convert.ToDateTime').encode("utf8")
277-
assertmsg.find(fnd)>-1,msg
278-
279273

280274
deftest_python_compat_of_managed_exceptions():
281275
"""Test managed exceptions compatible with Python's implementation"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp