import sys
import unittest

import pyoram

is_pypy = False
try:
    import __pypy__
    is_pypy = True
except ImportError:
    is_pypy = False

class Test(unittest.TestCase):

    # See what Python versions the combined
    # coverage report includes
    def test_show_coverage(self):
        if not is_pypy:
            if sys.version_info.major == 2:
                if sys.version_info.minor == 6:
                    print(sys.version_info)
                if sys.version_info.minor == 7:
                    print(sys.version_info)
            if sys.version_info.major == 3:
                if sys.version_info.minor == 2:
                    print(sys.version_info)
                if sys.version_info.minor == 3:
                    print(sys.version_info)
                if sys.version_info.minor == 4:
                    print(sys.version_info)
                if sys.version_info.minor == 5:
                    print(sys.version_info)
        if is_pypy:
            if sys.version_info.major == 2:
                if sys.version_info.minor == 7:
                    print(sys.version_info)
            if sys.version_info.major == 3:
                if sys.version_info.minor == 2:
                    print(sys.version_info)

    def test_version(self):
        pyoram.__version__

if __name__ == "__main__":
    unittest.main() # pragma: no cover

import sys
import unittest

import pyoram

is_pypy = False
try:
    import __pypy__
    is_pypy = True
except ImportError:
    is_pypy = False

class Test(unittest.TestCase):

    # See what Python versions the combined
    # coverage report includes
    def test_show_coverage(self):
        if not is_pypy:
            if sys.version_info[0] == 2:
                if sys.version_info[1] == 6:
                    print(sys.version_info)
                elif sys.version_info.minor == 7:
                    print(sys.version_info)
            elif sys.version_info.major == 3:
                if sys.version_info.minor == 2:
                    print(sys.version_info)
                elif sys.version_info.minor == 3:
                    print(sys.version_info)
                elif sys.version_info.minor == 4:
                    print(sys.version_info)
                elif sys.version_info.minor == 5:
                    print(sys.version_info)
        if is_pypy:
            if sys.version_info.major == 2:
                if sys.version_info.minor == 7:
                    print(sys.version_info)
            elif sys.version_info.major == 3:
                if sys.version_info.minor == 2:
                    print(sys.version_info)

    def test_version(self):
        pyoram.__version__

if __name__ == "__main__":
    unittest.main() # pragma: no cover

fix for python2.6