Skip to main content

Meta-package for unittest2 functionality on both Python 2 and Python 3

Project description

https://secure.travis-ci.org/msabramo/unittest2six.png

Simple meta package to easily get unittest2 functionality in both Python 2 and Python 3.

This provides stuff that was added to unittest in the Python 2.7 stdlib and backported to Python 2.6 with unittest2. e.g.:

  • assertIn/assertNotIn
  • assertIsInstance/assertNotIsInstance
  • assertRaises as a context manager
  • etc…

This module has no code. It’s just a meta package that install_requires the proper dependency:

This is handy to have one dependency that you can use on both Python 2 and Python 3 and not have to have separate pip requirements files and tox targets.

Compatibility

Results from Tox:

$ make test
...
[TOX] py25: commands succeeded
[TOX] py26: commands succeeded
[TOX] py27: commands succeeded
[TOX] py30: commands succeeded
[TOX] py31: commands succeeded
[TOX] py32: commands succeeded
[TOX] congratulations :)
...
  py26: commands succeeded
  py27: commands succeeded
  py32: commands succeeded
  py33: commands succeeded
  py34: commands succeeded
  pypy: commands succeeded
  congratulations :)

See also

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for unittest2six, version 0.0.0
Filename, size File type Python version Upload date Hashes
Filename, size unittest2six-0.0.0-cp27-none-macosx_10_4_x86_64.whl (3.4 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size unittest2six-0.0.0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page