Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python27: support test/support

In the maintenance release bump in
90059701a836b0d0dbc676e2d1ce417cc5a25bd2 a certain change to /test/ was
backported from Python 3:

- bpo-30207: To simplify backports from Python 3, the test.test_support
module was converted into a package and renamed to test.support. The
test.script_helper module was moved into the test.support package.
Names test.test_support and test.script_helper are left as aliases to
test.support and test.support.script_helper.

(cherry picked from commit 96d15eaddb17e0bb9097a04cfe9d1afbe46a1de5)

+2 -1
+2 -1
pkgs/development/interpreters/python/cpython/2.7/default.nix
··· 161 161 # functionality to 2.x from 3.x 162 162 for item in $out/lib/python${majorVersion}/test/*; do 163 163 if [[ "$item" != */test_support.py* 164 - && "$item" != */regrtest.py* ]]; then 164 + && "$item" != */test/support 165 + && "$item" != */test/regrtest.py* ]]; then 165 166 rm -rf "$item" 166 167 else 167 168 echo $item