Skip to content
Snippets Groups Projects
Commit 6c142f27 authored by Boris Feld's avatar Boris Feld
Browse files

pypy: fix failing test files with Pypy5.6.0

Pypy 5.6.0 saves cached bytecode files in __pycache__ directory, clean them in
tests to fix loading old test extensions code.

Doing so should also helps for Python3.x migration.
parent 80635169
No related branches found
No related tags found
No related merge requests found
......@@ -234,4 +234,5 @@
*** runcommand --config hooks.pre-identify=python:hook.hook id
eff892de26ec tip
Clean hook cached version
$ rm hook.py*
......@@ -237,4 +238,5 @@
$ rm hook.py*
$ rm -Rf __pycache__
$ echo a >> a
>>> import os
......
......@@ -270,4 +270,6 @@
> cmdtable = {}
>
> EOF
Clean cached version
$ rm -f "${extpath}c"
......@@ -273,4 +275,6 @@
$ rm -f "${extpath}c"
$ rm -Rf "`dirname $extpath`/__pycache__"
$ touch z
$ hg ci -qAm z
transaction abort!
......@@ -305,4 +309,6 @@
> cmdtable = {}
>
> EOF
Clean cached versions
$ rm -f "${extpath}c"
......@@ -308,4 +314,6 @@
$ rm -f "${extpath}c"
$ rm -Rf "`dirname $extpath`/__pycache__"
$ hg up -q 1
$ touch z
$ hg ci -qAm z 2>/dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment