Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

glacials/_coverage_error_repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository reproduces a bug with an interaction between Coverage.py and some types of frames, which I've specifically seen come out of pyarmor. See nedbat/coveragepy#1210

Run this script to reproduce the issue:

./run.sh

You should see some error output like:

...
INTERNALERROR>   File "/home/glacials/.pyenv/versions/3.9.6/lib/python3.9/site-packages/coverage/context.py", line 41, in should_start_context_test_function
INTERNALERROR>     return qualname_from_frame(frame)
INTERNALERROR>   File "/home/glacials/.pyenv/versions/3.9.6/lib/python3.9/site-packages/coverage/context.py", line 51, in qualname_from_frame
INTERNALERROR>     self = frame.f_locals["self"]
INTERNALERROR> KeyError: 'self'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published