Skip to content

Commit

Permalink
maybe maybe maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Sep 30, 2024
1 parent d399b50 commit 885ede7
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tests/compas/test_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest

import compas
from compas.plugins import IncompletePluginImplError
from compas.plugins import PluginValidator

Expand Down Expand Up @@ -38,14 +39,19 @@ def test_ensure_implementations_with_valid_impl():
PluginValidator.ensure_implementations(CompleteImpl)


def test_dot_net_exception():
import compas
from compas.plugins import DotNetException
if not compas.IPY:

assert DotNetException is not None
if compas.RHINO:
def test_dot_net_exception():
from compas.plugins import DotNetException

assert DotNetException is not None
assert isinstance(DotNetException(), BaseException)


if compas.IPY:

def test_dot_new_exception_ipy():
import System.Exception
from compas.plugins import DotNetException

assert DotNetException is System.Exception
else:
assert isinstance(DotNetException(), BaseException)

0 comments on commit 885ede7

Please sign in to comment.