| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Please add tests to prevent regression. |
Sorry, something went wrong.
| self.assertIsInstance(remote, ssl.SSLSocket) | ||
|
|
||
| with self.assertRaises(NotImplementedError): | ||
| remote.dup() |
There was a problem hiding this comment.
Maybe this is not the best place to put this check, but it's not obvious to construct the ssl.SSLSocket instance manually, and there is no other place in this test file where we are sure to have such instance.
Sorry, something went wrong.
|
Thanks @rhettinger, added non regression tests.. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes https://bugs.python.org/issue35429
In two places in stdlib, raise NotImplemented was used instead of raise NotImplementedError. The former is not valid and produces,
>>> raise NotImplemented('message') Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'NotImplementedType' object is not callablehttps://bugs.python.org/issue35429