8000 PythonTypeName property added to the PythonException object. by dmitriyse · Pull Request #597 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content

PythonTypeName property added to the PythonException object. #597

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 4 commits into from
Feb 10, 2018
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
Update TestPythonException.cs
  • Loading branch information
den-run-ai authored Feb 10, 2018
commit c3486f1c0b2429c394d7583afdd60cbb12754a60
2 changes: 1 addition & 1 deletion src/embed_tests/TestPythonException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void TestPythonErrorTypeName()
}
catch (PythonException ex)
{
Assert.AreEqual(ex.PythonTypeName, "ModuleNotFoundError");
Assert.That(ex.PythonTypeName, Is.EqualTo("ModuleNotFoundError").Or.EqualTo("ImportError"));
}
}
}
Expand Down
0