Changes between Version 2 and Version 3 of Ticket #20765, comment 6


Ignore:
Timestamp:
12/16/16 21:11:01 (4 years ago)
Author:
mderickx
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20765, comment 6

    v2 v3  
    1 I found the solution. There is a [http://stackoverflow.com/questions/6031584/importing-from-builtin-library-when-module-with-same-name-exists stackoverflow question] which answers how to get the system module. This is done by adding: `from __future__ import absolute_import` at the top of `remote_file.py`. I tested this and this indeed solves the problem. The thing I don't get though is how the doctests still pass, because the functionality is still doctested.
     1I found the solution. There is a [http://stackoverflow.com/questions/6031584/importing-from-builtin-library-when-module-with-same-name-exists stackoverflow question] which answers how to get the system module. This is done by adding: `from __future__ import absolute_import` at the top of `remote_file.py`. I tested this and this indeed solves the problem. The thing I don't get though is how the doctest passes even before fixing this bug.