Error compiling a file that uses doctest

Aperta
#691 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, python
Ambito
compilers, testing

Direzione di ricerca

Begin with the doctest import in the code block and the compiler's import-resolution paths shown in the error. Reproduce compilation with this example and determine how the standard-library import should be handled; done means the reported missing-doctest error no longer occurs.

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

Descrizione

I have a long module that ends with the following code, which is used for testing:

if __name__ == "__main__":
    import doctest
    (failures,tests) = doctest.testmod(report=True)
    print ("{} failures, {} tests".format(failures,tests))

When I try to compile it with transcrypt, I get the following error:

    Import error, can't find any of:
            D:/Dropbox/papers/GTR-SBB/auctions/doctest.py
            D:/Dropbox/papers/GTR-SBB/auctions/doctest.js
            c:/users/user/appdata/local/programs/python/python37/lib/site-packages/transcrypt/modules/doctest.py
            c:/users/user/appdata/local/programs/python/python37/lib/site-packages/transcrypt/modules/doctest.js
            C:/Users/user/AppData/Local/Programs/Python/Python37/Scripts/doctest.py
            C:/Users/user/AppData/Local/Programs/Python/Python37/Scripts/doctest.js
            C:/Users/user/AppData/Roaming/Python/Python37/site-packages/doctest.py
            C:/Users/user/AppData/Roaming/Python/Python37/site-packages/doctest.js
            c:/users/user/appdata/local/programs/python/python37/lib/site-packages/doctest.py
            c:/users/user/appdata/local/programs/python/python37/lib/site-packages/doctest.js
Lingua principale
Python
Stelle
2.9k
Fork
218
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 TranscryptOrg/Transcrypt

Tutte le issue di TranscryptOrg/Transcrypt

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.