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

Addresses issue #261 with providing more detail information missing d…#298

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from1 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
PrevPrevious commit
NextNext commit
Added unit test for fix for#261 added .NET DLL with missing dependency
  • Loading branch information
Daniel Fernandez authored andDaniel Fernandez committedDec 2, 2016
commit21f8a1b0f37f6021e2bdce988b85cdbd926926f5
5 changes: 5 additions & 0 deletionssrc/tests/test_suite/_missing_import_dependency.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
import os
import clr
path_to_dll = os.path.join(os.path.dirname(__file__), "TestDependencyAssembly.dll")
clr.AddReference(path_to_dll)
from TestDependencyAssembly import TestDependency
6 changes: 6 additions & 0 deletionssrc/tests/test_suite/test_import.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,6 +9,12 @@ def testRealtiveMissingImport(self):
from . import _missing_import
except ImportError:
pass

def testMissingImportDepencency(self):
missing_dependency_name = "MissingDependencyAssembly"
with self.assertRaisesRegexp(ImportError, missing_dependency_name):
from . import _missing_import_dependency



def test_suite():
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp