[issue2865] syntax error in fix_imports.py

2008-05-15 Thread Stijn van Drongelen

New submission from Stijn van Drongelen <[EMAIL PROTECTED]>:

In the current revision of 2to3 (63319), somebody forgot a comma at the
end of line 27 of lib2to3/fix_imports.py, resulting in a syntax error.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
files: fix_imports-syntaxerror-63319.patch
keywords: patch
messages: 66867
nosy: Tinctorius, collinwinter
severity: normal
status: open
title: syntax error in fix_imports.py
type: compile error
Added file: http://bugs.python.org/file10333/fix_imports-syntaxerror-63319.patch

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2865>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2866] syntax error in fix_imports.py

2008-05-15 Thread Stijn van Drongelen

New submission from Stijn van Drongelen <[EMAIL PROTECTED]>:

In the current revision of 2to3 (63319), somebody forgot a comma at the
end of line 27 of lib2to3/fix_imports.py, resulting in a syntax error.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
files: fix_imports-syntaxerror-63319.patch
keywords: patch
messages: 66869
nosy: Tinctorius, collinwinter
severity: normal
status: open
title: syntax error in fix_imports.py
type: compile error
Added file: http://bugs.python.org/file10334/fix_imports-syntaxerror-63319.patch

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2866>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1610] test_socket.py fails

2008-10-05 Thread Stijn van Drongelen

Stijn van Drongelen <[EMAIL PROTECTED]> added the comment:

Reproducable with Python3.0rc1 on Debian lenny, only when nscd is running.

Not a Python bug.

--
nosy: +Tinctorius
versions: +Python 3.0

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1610>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42906] python3 -m doctest test.py tests the stdlib "time" module instead

2021-01-12 Thread Stijn van Drongelen


New submission from Stijn van Drongelen :

I have two files, named time.py and time_.py, with the same contents:

def foo():
"""Returns 1.

>>> foo()
1
"""
return 1

When I run

python3 -m doctest -v time_.py

I see the expected behaviour:

Trying:
foo()
Expecting:
1
ok
1 items had no tests:
time_
1 items passed all tests:
   1 tests in time_.foo
1 tests in 2 items.
1 passed and 0 failed.
Test passed.

However, when I run

python3 -m doctest -v time_.py

it seems like doctest is testing the standard library 'time' module, while I 
expected it to have similar output as seen above:

30 items had no tests:
time
time.asctime
  (... skipped 24 lines for the bug report ...)
time.time_ns
time.tzset
0 tests in 30 items.
0 passed and 0 failed.
Test passed.

The same happens when I provide a path with slashes in it.

--
components: Library (Lib)
messages: 384913
nosy: stijnvandrongelen
priority: normal
severity: normal
status: open
title: python3 -m doctest test.py tests the stdlib "time" module instead
type: behavior
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue42906>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue42906] python3 -m doctest test.py tests the stdlib "time" module instead

2021-01-12 Thread Stijn van Drongelen


Stijn van Drongelen  added the comment:

Reproducible in Python 3.8.7 and 3.9.1.

--
versions: +Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue42906>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com