[issue35573] is_HDN is returns false positive and false negative value for two test cases respectively

2018-12-23 Thread Divya Rani
Divya Rani added the comment: The function link is here: https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Lib/http/cookiejar.py#L521 The function returned true for "foo!bar.com" which is false positive and the test case is taken from the list of invalid domain

[issue35573] is_HDN is returns false positive and false negative value for two test cases respectively

2018-12-23 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > What is the module "cookiejar" you are importing? Is that a third-party > module? It doesn't seem to be in the standard library. There is a module > `http.cookiejar` but it doesn't seem to have an `is_HDN` function. is_HDN does exist in

[issue35573] is_HDN is returns false positive and false negative value for two test cases respectively

2018-12-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: What is the module "cookiejar" you are importing? Is that a third-party module? It doesn't seem to be in the standard library. There is a module `http.cookiejar` but it doesn't seem to have an `is_HDN` function. If this is a third-party library, please

[issue35573] is_HDN is returns false positive and false negative value for two test cases respectively

2018-12-23 Thread Divya Rani
Divya Rani added the comment: import cookiejar cookiejar.is_HDN("foo!bar.com") Output: True cookiejar.is_HDN("woo.com.") Output: False Test cases taken from: 1.

[issue35573] is_HDN is returns false positive and false negative value for two test cases respectively

2018-12-23 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Can you please add a reproducible test case and a description to the issue explaining expected behavior and actual behavior? Thanks -- nosy: +xtreak ___ Python tracker

[issue35573] is_HDN is returns false positive and false negative value for two test cases respectively

2018-12-23 Thread Divya Rani
Change by Divya Rani : -- components: Library (Lib) nosy: Divya Rani priority: normal severity: normal status: open title: is_HDN is returns false positive and false negative value for two test cases respectively type: behavior versions: Python 3.6