mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 09:26:27 -04:00
PR: 217206 Submitted by: maintainer Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D9667
20 lines
442 B
Python
20 lines
442 B
Python
from unittest import SkipTest, TestSuite
|
|
|
|
|
|
def load_tests(*args, **kwargs):
|
|
import suite
|
|
return suite.suite
|
|
|
|
|
|
try:
|
|
from pysnmp.smi.builder import MibBuilder
|
|
except ImportError:
|
|
|
|
# python -m unittest pysmi.tests
|
|
def load_tests(*args, **kwars):
|
|
print("Skipping test suite: pysnmp is not installed")
|
|
return TestSuite()
|
|
|
|
# nosetests pysmi
|
|
def setup():
|
|
raise SkipTest("pysnmp is not installed")
|