CVE and update status of the FreeBSD ports tree3,864 unaddressed CVEs in 671 portsAll times are CET
Port details

devel/py-unittest2 1.1.0_3

New features in unittest backported to Python 2

Port info

Maintainer
sunpoet@FreeBSD.org
Packages
latest: 1.1.0_3
Upstream
up to date
Last update
to 1.1.0_3 · 3ad4d21165
Quarterly
2026Q4: 1.1.0_3
WWW
https://github.com/garbas/unittest2
Links
cgit · VuXML

Install

Package
# pkg install py312-unittest2
installs 1.1.0_3 from latest; from quarterly (2026Q4) 1.1.0_3
Port
# cd /usr/ports/devel/py-unittest2 && make install clean
Size
216 KiB download · 1.6 MiB installed
Depends on
devel/py-six 1.17.0, devel/py-traceback2 1.4.0_3, lang/python312 3.12.15
License
BSD3CLAUSE

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 161.1.0_31.1.0_3–
FreeBSD 151.1.0_31.1.0_3–
FreeBSD 141.1.0_31.1.0_31.1.0_3

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 151.1.0_31.1.0_3–
FreeBSD 141.1.0_31.1.0_31.1.0_3

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 1.1.0_3.

Fixed (0)

No VuXML entries for this package.

Problem reports (0) · open in Bugzilla, most recently changed first

None.

Commits (37)

Po-Chuan Hsieh (sunpoet) · 1.1.0_3
devel/py-unittest2: Remove outdated PYTHON_REL check after lang/python39 removal (05de8effa6b4a6fd9758a51d0c1acea91a36d3c6)
3ad4d21165
Po-Chuan Hsieh (sunpoet) · 1.1.0_3
devel/py-unittest2: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for package change
b923f2ba27
Rene Ladan (rene) · 1.1.0_2
all: remove explicit versions in USES=python for "3.x+"

The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
3d9a815d9c
Po-Chuan Hsieh (sunpoet) · 1.1.0_2
devel/py-unittest2: Update WWW
3104d09229
Dmitry Marakasov (amdmi3) · 1.1.0_2
*/*: rename CHEESESHOP to PYPI in MASTER_SITES

PR:			267994
Differential revision:	D37518
Approved by:		bapt
77d68471ad
Stefan Eßer (se) · 1.1.0_2
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
fb16dfecae
Stefan Eßer (se) · 1.1.0_2
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
b7f05445c0
Po-Chuan Hsieh (sunpoet) · 1.1.0_2
devel/py-unittest2: Relax USES=python

- Allow build with Python 3.10+
5389ede757
Dima Panov (fluffy) · 1.1.0_2
devel/py-unittest2: limit available python range to 3.7-3.9

Reported by:	poudriere fallout
Approved by:	portmgr blanket (fix build)
7888978d77
Po-Chuan Hsieh (sunpoet) · 1.1.0_2
devel/py-unittest2: Add make test
5163c6671f
Po-Chuan Hsieh (sunpoet) · 1.1.0_2
devel/py-unittest2: Relax USES=python
fe2e5782a7
Dmitry Marakasov (amdmi3) · 1.1.0_2
devel/py-unittest2: limit supported python versions

File "/wrkdirs/usr/ports/devel/py-unittest2/work-py310/unittest2-1.1.0/unittest2/compatibility.py", line 143, in <module>
    class ChainMap(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'

Approved by:	portmgr blanket
d085d9801f
Mathieu Arnold (mat) · 1.1.0_2
One more small cleanup, forgotten yesterday. Reported by:	lwhsu
cf118ccf87
Mathieu Arnold (mat) · 1.1.0_2
Remove # $FreeBSD$ from Makefiles.
305f148f48
Antoine Brodin (antoine) · 1.1.0_2
Drop python 2.7 support from a few ports

With hat:	portmgr
aa7a6c429e
Sunpoet Po-Chuan Hsieh (sunpoet) · 1.1.0_2
Convert REINPLACE_CMD to patch file
1831a5b0f4
Antoine Brodin (antoine) · 1.1.0_2
Bump a few PORTREVISIONs after r498529

With hat:	portmgr
63f5eeef8a
Sunpoet Po-Chuan Hsieh (sunpoet) · 1.1.0_1
Fix *_DEPENDS

- Add NO_ARCH
- Bump PORTREVISION for dependency and package change
437688e28c
Sunpoet Po-Chuan Hsieh (sunpoet) · 1.1.0
Take maintainership
5b56258293
Mark Felder (feld) · 1.1.0
Reset maintainer on my python ports
bf44443d13
Mathieu Arnold (mat) · 1.1.0
Use PY_FLAVOR for dependencies.

FLAVOR is the current port's flavor, it should not be used outside of
this scope.

Sponsored by:	Absolight
4376dbbb58
Dmitry Marakasov (amdmi3) · 1.1.0
Switch all pypi.python.org WWWs to a new PyPi home pypi.org where they now redirect to anyway. All new urls checked to return 200, I've fixed a couple of them in the process.

Approved by:	portmgr blanket, mat
c637402081
Dmitry Marakasov (amdmi3) · 1.1.0
Canonicalize PyPi WWWs: - Switch to https:// - Remove trailing slashes

Approved by:	portmgr blanket
d6c95efd94
Mathieu Arnold (mat) · 1.1.0
Convert Python ports to FLAVORS.

Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
551be3c723
Mark Felder (feld) · 1.1.0
devel/py-unittest2: Revive deleted port

This port is still of value. The built-in unittest in Python 2.7 is
missing features provided by unittest2 which backports from Python 3.x.

Example code which produces a failure with 2.7's built-in unittest:

import unittest2
import unittest

class ExampleUT(unittest.TestCase):

    def test_unittest(self):
        for i in [1, 2, 3]:
            with self.subTest(i=i):
                self.assertEqual(i, i)

class ExampleUT2(unittest2.TestCase):

    def test_unittest2(self):
        for i in [1, 2, 3]:
            with self.subTest(i=i):
                self.assertEqual(i, i)

if __name__ == '__main__':
    unittest2.main()
731b9eed8e
Ruslan Makhmatkhanov (rm)
devel/py-unittest2: remove expired port

This port was only needed for Pythons lesser than 2.7
9b980d2daa
Ruslan Makhmatkhanov (rm) · 0.8.0
devel/py-unittest2: mark deprecated

This port is outdated and it have no consumers anymore. The only
consumer was textproc/py-python-gettext and it was only needed
for Python versions lesser than 2.7.
Mark it deprecated and set to expire at 2016-09-21.
5c94eef602
Mathieu Arnold (mat) · 0.8.0
Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.

With hat:	portmgr
Sponsored by:	Absolight
4e1b79a0a6
Ruslan Makhmatkhanov (rm) · 0.8.0
devel/py-unittest2: update to 0.8.0
f213ec64e0
Marcus von Appen (mva) · 0.5.1_1
- Convert ports of devel/ to USES=python

Approved by:	portmgr (implicit)
89e07f4a18
Kubilay Kocak (koobs) · 0.5.1_1
devel/py-unittest2: Update LICENSE w/ references

- Update LICENSE (BSD3CLAUSE)

This one was fun to find. As rm@ mentioned in a previous commit, no
LICENSE file exists in the Google Code or hg.python.org repositories.

There is a "New BSD License" reference on the unittest-ext homepage [1]
but wasnt a direct reference to the source in question, so it was not
considered good enough.

Gold was struck grepping BSD in the sources, which leads to the setup.py
header, that includes a URL reference to:

    http://www.voidspace.org.uk/python/license.shtml

BSD 3-clause. Voila!

[1] http://code.google.com/p/unittest-ext/

Approved by:	portmgr (blanket)
8c3c054f9f
Baptiste Daroussin (bapt) · 0.5.1_1
Convert d* to USES=zip
c23ef8bc8b
Ruslan Makhmatkhanov (rm) · 0.5.1_1
- convert to using auto-generated packing list - limit python version to 2.x only - bump PORTREVISION

Anticipating possible license question: I have no info about
clauses number used in the license for this port. There is no
license file in the distribution, and upstream web-page also
doesn't answering that.
799f66d098
Sunpoet Po-Chuan Hsieh (sunpoet) · 0.5.1
- Update WWW:   - http://cheeseshop.python.org/ -> https://pypi.python.org/   - http://pypi.python.org/ -> https://pypi.python.org/

With hat:	python
Approved by:	bapt (portmgr)
6670f0b757
Baptiste Daroussin (bapt) · 0.5.1
Add NO_STAGE all over the place in preparation for the staging support (cat: devel part 3)
580a778a16
Ruslan Makhmatkhanov (rm) · 0.5.1
Change email for my ports to FreeBSD one.

Approved by:	novel (mentor)
Feature safe:	yes
1d3015aac7
Wen Heping (wen) · 0.5.1
unittest2 is a backport of the new features added to the unittest testing framework in Python 2.7. It is tested to on Python 2.4 - 2.7.

WWW: http://pypi.python.org/pypi/unittest2

Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru> (via GitHub)
2160d1efeb