summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Withers <chris@withers.org>2019-04-29 08:17:45 +0100
committerChris Withers <chris@withers.org>2019-04-30 08:39:55 +0100
commita2e00f460953e2141684f4b6d7ad0097d37c340d (patch)
treeb87c4df4d4767cfa54ba10af64bdf2f26af3eb95 /docs
parent99b1b189e539064859866de2f4ab2c9c7854c537 (diff)
downloadmock-a2e00f460953e2141684f4b6d7ad0097d37c340d.tar.gz
move python 3-only code to its own file.
Diffstat (limited to 'docs')
-rw-r--r--docs/index.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/index.txt b/docs/index.txt
index f407867..7f4dca2 100644
--- a/docs/index.txt
+++ b/docs/index.txt
@@ -146,6 +146,10 @@ Backporting rules
- ``assertRaisesRegex`` needs to be ``assertRaisesRegexp`` for Python 2.
+- If test code won't compile on a particular version of Python, move it to
+ a matching ``_py{version}.py`` file. If ``{version}`` isn't 3, adjust
+ ``conftest.py``.
+
Backporting process
-------------------