Skip to content

Conversation

@jonringer
Copy link

@jonringer jonringer commented Jan 11, 2022

unittest2 is an unmaintained backport package. Should be conditionally added

closes: #54

try:
import unittest2
except ImportError:
import unittest

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could write this more concisely as import unittest as unittest2.

@musicinmybrain
Copy link

The use of unittest2 in docs/sample.py can also be made conditional.

import unittest2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.1.0: test suite is usnig unittest2

2 participants