Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Sync bitbucket and GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
carchi8py committed Apr 12, 2021
1 parent 4841461 commit e219242
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions tests/unit/compat/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

import sys

import pytest

# Allow wildcard import because we really do want to import all of
# unittests's symbols into this compat shim
# pylint: disable=wildcard-import,unused-wildcard-import
Expand All @@ -34,5 +36,9 @@
from unittest2 import *
except ImportError:
print('You need unittest2 installed on python2.6.x to run tests')

class TestCase:
""" skip everything """
pytestmark = pytest.mark.skip('Skipping Unit Tests on 2.6 as unittest2 may not be available')
else:
from unittest import *
3 changes: 1 addition & 2 deletions tests/unit/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
solidfire-sdk-python
unittest2 ; python_version < '2.7'
solidfire-sdk-python ; python_version >= '2.7'

0 comments on commit e219242

Please sign in to comment.