[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2015-02-25 Thread Mark Lawrence

Mark Lawrence added the comment:

@Steven would you like to formally review the patch please.  At a very quick 
glance it looks okay to me.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20780
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2015-02-25 Thread Benjamin Peterson

Benjamin Peterson added the comment:

The duplicate tests have been renamed already.

--
nosy: +benjamin.peterson
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20780
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-05-09 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20780
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-02-26 Thread Vajrasky Kok

New submission from Vajrasky Kok:

Line 994 of Lib/test/test_statistics.py:

def test_decimal_mismatched_infs_to_nan(self):
# Test adding Decimal INFs with opposite sign returns NAN.
inf = Decimal('inf')
data = [1, 2, inf, 3, -inf, 4]
with decimal.localcontext(decimal.ExtendedContext):
self.assertTrue(math.isnan(statistics._sum(data)))

def test_decimal_mismatched_infs_to_nan(self):
# Test adding Decimal INFs with opposite sign raises InvalidOperation.
inf = Decimal('inf')
data = [1, 2, inf, 3, -inf, 4]
with decimal.localcontext(decimal.BasicContext):
self.assertRaises(decimal.InvalidOperation, statistics._sum, data)

Here is the patch. I also removed unnecessary import.

--
components: Tests
files: fix_shadowed_test_in_test_statistics.patch
keywords: patch
messages: 212247
nosy: stevenjd, vajrasky
priority: normal
severity: normal
status: open
title: Shadowed (duplicate name but different body) test in test_statistics
type: behavior
versions: Python 3.4
Added file: 
http://bugs.python.org/file34228/fix_shadowed_test_in_test_statistics.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20780
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-02-26 Thread Vajrasky Kok

Changes by Vajrasky Kok sky@speaklikeaking.com:


Added file: 
http://bugs.python.org/file34229/fix_shadowed_test_in_test_statistics.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20780
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20780] Shadowed (duplicate name but different body) test in test_statistics

2014-02-26 Thread Vajrasky Kok

Changes by Vajrasky Kok sky@speaklikeaking.com:


Removed file: 
http://bugs.python.org/file34228/fix_shadowed_test_in_test_statistics.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20780
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com