From 140f1039acf81c58eb5dfabdda807df5a3ab3437 Mon Sep 17 00:00:00 2001 From: pyfisch Date: Sat, 29 Aug 2020 22:47:06 +0200 Subject: [PATCH] Remove section on unittest2 Only needed for Python 2.6 and below --- docs/writing/tests.rst | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/docs/writing/tests.rst b/docs/writing/tests.rst index ccfc938..7809d9f 100644 --- a/docs/writing/tests.rst +++ b/docs/writing/tests.rst @@ -248,35 +248,6 @@ simple INI-style configuration file. `tox `_ -Unittest2 ---------- - -unittest2 is a backport of Python 2.7's unittest module which has an improved -API and better assertions over the one available in previous versions of Python. - -If you're using Python 2.6 or below, you can install it with pip: - -.. code-block:: console - - $ pip install unittest2 - -You may want to import the module under the name unittest to make porting code -to newer versions of the module easier in the future - -.. code-block:: python - - import unittest2 as unittest - - class MyTest(unittest.TestCase): - ... - -This way if you ever switch to a newer Python version and no longer need the -unittest2 module, you can simply change the import in your test module without -the need to change any other code. - - `unittest2 `_ - - mock ----