summaryrefslogtreecommitdiff
path: root/changelog
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-11-09 15:07:51 +0200
committerRan Benita <ran@unusedvar.com>2020-11-14 23:20:12 +0200
commit1d532da49ec7e25ff9d78509a61c3aa82a29b482 (patch)
treec96390e3a48501cf813fa040375cb473ff4ef9ea /changelog
parente986d84466dfa98dbbc55cc1bf5fcb99075f4ac3 (diff)
downloadpytest-1d532da49ec7e25ff9d78509a61c3aa82a29b482.tar.gz
assertion/rewrite: write pyc's according to PEP-552 on Python>=3.7
Python 3.7 changes the pyc format by adding a flags byte. Even though it is not necessary for us to match it, it is nice to be able to read pyc files we emit for debugging the rewriter. Update our custom pyc files to use that format. We write flags==0 meaning we still use the mtime+size format rather the newer hash format.
Diffstat (limited to 'changelog')
-rw-r--r--changelog/8014.trivial.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/changelog/8014.trivial.rst b/changelog/8014.trivial.rst
new file mode 100644
index 000000000..3b9fb7bc2
--- /dev/null
+++ b/changelog/8014.trivial.rst
@@ -0,0 +1,2 @@
+`.pyc` files created by pytest's assertion rewriting now conform to the newer PEP-552 format on Python>=3.7.
+(These files are internal and only interpreted by pytest itself.)