Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

PythonTutor / CodeLens does not allow "import test"

Aperta
#279 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@dandrake ci sta già lavorando.

Dal 12/2/2026.

  • #280 di @dandrake — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Start with the CodeLens/PythonTutor integration used by the page at Functions/ProgramDevelopment.html and compare this report with rs issue 1146, including its unittest example. Determine where the import restriction is configured and verify that the page's import test example can run in CodeLens; the related issue may identify the active location for the fix.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

This is the same as https://github.com/RunestoneInteractive/rs/issues/1146 ; I'm not sure where this report belongs.

What Page were you on

https://runestone.academy/ns/books/published/thinkcspy/Functions/ProgramDevelopment.html

Describe the bug

The code there includes "import test" -- but the current version of PythonTutor it uses does not allow that import, so you can't use it / CodeLens.

A Screenshot is worth a thousand words

Image

What is your username

github: dandrake
runestone: ddrake1

I have some sample code that uses unittest: https://github.com/RunestoneInteractive/rs/issues/1146#issuecomment-3888123181

Lingua principale
HTML
Stelle
136
Fork
199
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RunestoneInteractive/thinkcspy

Tutte le issue di RunestoneInteractive/thinkcspy

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.