summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-02-04 14:00:00 -0500
committerTim Graham <timograham@gmail.com>2019-02-05 12:52:07 -0500
commit6d2ae49f254ee485101ef29f6d9521d0b7a39749 (patch)
treebac2d351b6f92434a0ffa8fdafcf028058091a33 /docs
parent487d904bf253de2f5633f181a168f94086bcd6cb (diff)
Refs #27753 -- Removed django.test.utils.patch_logger() and str_prefix().
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/3.0.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt
index 4dda131dbc..1c0a7d1f23 100644
--- a/docs/releases/3.0.txt
+++ b/docs/releases/3.0.txt
@@ -235,6 +235,22 @@ Dropped support for PostgreSQL 9.4
Upstream support for PostgreSQL 9.4 ends in December 2019. Django 3.0 supports
PostgreSQL 9.5 and higher.
+Removed private Python 2 compatibility APIs
+-------------------------------------------
+
+While Python 2 support was removed in Django 2.0, some private APIs weren't
+removed from Django so that third party apps could continue using them until
+the Python 2 end-of-life.
+
+Since we expect apps to drop Python 2 compatibility when adding support for
+Django 3.0, we're removing these APIs at this time.
+
+* ``django.test.utils.str_prefix()`` - Strings don't have 'u' prefixes in
+ Python 3.
+
+* ``django.test.utils.patch_logger()`` - Use
+ :meth:`unittest.TestCase.assertLogs` instead.
+
Miscellaneous
-------------