Error compiling a file that uses doctest

Đang mở
#691 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, python
Lĩnh vực
compilers, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
2.9k
Fork
218
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TranscryptOrg/Transcrypt

Tất cả issue của TranscryptOrg/Transcrypt

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.