mirror of
https://github.com/modelscope/modelscope.git
synced 2026-05-18 13:15:06 +02:00
24 lines
543 B
Python
24 lines
543 B
Python
# Copyright (c) Alibaba, Inc. and its affiliates.
|
|
|
|
import unittest
|
|
|
|
from modelscope.utils.import_utils import exists
|
|
|
|
|
|
class CompatibilityTest(unittest.TestCase):
|
|
|
|
def setUp(self):
|
|
print(('Testing %s.%s' % (type(self).__name__, self._testMethodName)))
|
|
|
|
def tearDown(self):
|
|
super().tearDown()
|
|
|
|
@unittest.skipUnless(
|
|
exists('xtcocotools'), 'Skip because xtcocotools is not installed.')
|
|
def test_xtcocotools(self):
|
|
from xtcocotools.coco import COCO
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|