René's URL Explorer Experiment


Title: [future-0.18.0] test urllib2 failed with Python3.8 · Issue #508 · PythonCharmers/python-future · GitHub

Open Graph Title: [future-0.18.0] test urllib2 failed with Python3.8 · Issue #508 · PythonCharmers/python-future

X Title: [future-0.18.0] test urllib2 failed with Python3.8 · Issue #508 · PythonCharmers/python-future

Description: Hi all. I know that Python-3.8.0-rc1 is not supported yet but i wish to point out following error anyway: ____________________________ HandlerTests.test_ftp _____________________________ self =

Open Graph Description: Hi all. I know that Python-3.8.0-rc1 is not supported yet but i wish to point out following error anyway: ____________________________ HandlerTests.test_ftp _____________________________ self =

X Description: Hi all. I know that Python-3.8.0-rc1 is not supported yet but i wish to point out following error anyway: ____________________________ HandlerTests.test_ftp _____________________________ self = <...

Opengraph URL: https://github.com/PythonCharmers/python-future/issues/508

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[future-0.18.0] test urllib2 failed with Python3.8","articleBody":"Hi all.\r\n\r\nI know that Python-3.8.0-rc1 is not supported yet but i wish to point out following error anyway:\r\n\r\n```\r\n____________________________ HandlerTests.test_ftp _____________________________\r\nself = \u003ctest_future.test_urllib2.HandlerTests testMethod=test_ftp\u003e\r\n    def test_ftp(self):\r\n        class MockFTPWrapper(object):\r\n            def __init__(self, data): self.data = data\r\n            def retrfile(self, filename, filetype):\r\n                self.filename, self.filetype = filename, filetype\r\n                return io.StringIO(self.data), len(self.data)\r\n            def close(self): pass\r\n    \r\n        class NullFTPHandler(urllib_request.FTPHandler):\r\n            def __init__(self, data): self.data = data\r\n            def connect_ftp(self, user, passwd, host, port, dirs,\r\n                            timeout=socket._GLOBAL_DEFAULT_TIMEOUT):\r\n                self.user, self.passwd = user, passwd\r\n                self.host, self.port = host, port\r\n                self.dirs = dirs\r\n                self.ftpwrapper = MockFTPWrapper(self.data)\r\n                return self.ftpwrapper\r\n    \r\n        import ftplib\r\n        data = \"rheum rhaponicum\"\r\n        h = NullFTPHandler(data)\r\n        h.parent = MockOpener()\r\n    \r\n        for url, host, port, user, passwd, type_, dirs, filename, mimetype in [\r\n            (\"ftp://localhost/foo/bar/baz.html\",\r\n             \"localhost\", ftplib.FTP_PORT, \"\", \"\", \"I\",\r\n             [\"foo\", \"bar\"], \"baz.html\", \"text/html\"),\r\n            (\"ftp://parrot@localhost/foo/bar/baz.html\",\r\n             \"localhost\", ftplib.FTP_PORT, \"parrot\", \"\", \"I\",\r\n             [\"foo\", \"bar\"], \"baz.html\", \"text/html\"),\r\n            (\"ftp://%25parrot@localhost/foo/bar/baz.html\",\r\n             \"localhost\", ftplib.FTP_PORT, \"%parrot\", \"\", \"I\",\r\n             [\"foo\", \"bar\"], \"baz.html\", \"text/html\"),\r\n            (\"ftp://%2542parrot@localhost/foo/bar/baz.html\",\r\n             \"localhost\", ftplib.FTP_PORT, \"%42parrot\", \"\", \"I\",\r\n             [\"foo\", \"bar\"], \"baz.html\", \"text/html\"),\r\n            (\"ftp://localhost:80/foo/bar/\",\r\n             \"localhost\", 80, \"\", \"\", \"D\",\r\n             [\"foo\", \"bar\"], \"\", None),\r\n            (\"ftp://localhost/baz.gif;type=a\",\r\n             \"localhost\", ftplib.FTP_PORT, \"\", \"\", \"A\",\r\n             [], \"baz.gif\", None),  # XXX really this should guess image/gif\r\n            ]:\r\n            req = Request(url)\r\n            req.timeout = None\r\n            r = h.ftp_open(req)\r\n            # ftp authentication not yet implemented by FTPHandler\r\n            self.assertEqual(h.user, user)\r\n            self.assertEqual(h.passwd, passwd)\r\n            self.assertEqual(h.host, socket.gethostbyname(host))\r\n            self.assertEqual(h.port, port)\r\n            self.assertEqual(h.dirs, dirs)\r\n            self.assertEqual(h.ftpwrapper.filename, filename)\r\n            self.assertEqual(h.ftpwrapper.filetype, type_)\r\n            headers = r.info()\r\n\u003e           self.assertEqual(headers.get(\"Content-type\"), mimetype)\r\nE           AssertionError: 'image/gif' != None\r\ntests/test_future/test_urllib2.py:726: AssertionError\r\n__________________________________ test_main ___________________________________\r\nverbose = None\r\n    def test_main(verbose=None):\r\n        # support.run_doctest(test_urllib2, verbose)\r\n        # support.run_doctest(urllib_request, verbose)\r\n        tests = (TrivialTests,\r\n                 OpenerDirectorTests,\r\n                 HandlerTests,\r\n                 MiscTests,\r\n                 RequestTests,\r\n                 RequestHdrsTests)\r\n\u003e       support.run_unittest(*tests)\r\ntests/test_future/test_urllib2.py:1562: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\nbuild/lib/future/backports/test/support.py:1665: in run_unittest\r\n    _run_suite(suite)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\nsuite = \u003cunittest.suite.TestSuite tests=[None, None, None, None, None, None]\u003e\r\n    def _run_suite(suite):\r\n        \"\"\"Run tests from a unittest.TestSuite-derived class.\"\"\"\r\n        if verbose:\r\n            runner = unittest.TextTestRunner(sys.stdout, verbosity=2,\r\n                                             failfast=failfast)\r\n        else:\r\n            runner = BasicTestRunner()\r\n    \r\n        result = runner.run(suite)\r\n        if not result.wasSuccessful():\r\n            if len(result.errors) == 1 and not result.failures:\r\n                err = result.errors[0][1]\r\n            elif len(result.failures) == 1 and not result.errors:\r\n                err = result.failures[0][1]\r\n            else:\r\n                err = \"multiple errors occurred\"\r\n                if not verbose: err += \"; run in verbose mode for details\"\r\n\u003e           raise TestFailed(err)\r\nE           future.backports.test.support.TestFailed: Traceback (most recent call last):\r\nE             File \"/builddir/build/BUILD/python-future-23989c4d61a5e3b2308b107efc1402bc727e8fe6/python3/tests/test_future/test_urllib2.py\", line 726, in test_ftp\r\nE               self.assertEqual(headers.get(\"Content-type\"), mimetype)\r\nE           AssertionError: 'image/gif' != None\r\nbuild/lib/future/backports/test/support.py:1640: TestFailed\r\n----------------------------- Captured stdout call -----------------------------\r\n```","author":{"url":"https://github.com/sagitter","@type":"Person","name":"sagitter"},"datePublished":"2019-10-12T13:27:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/508/python-future/issues/508"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:792920f9-8d95-4cbb-ccca-2916f2450f42
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9754:2839F:327427:437922:69697BA6
html-safe-nonce84351b80b703b2404489022df850aae13abd8aa3361dcdb6c69fa022b6b2aad4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzU0OjI4MzlGOjMyNzQyNzo0Mzc5MjI6Njk2OTdCQTYiLCJ2aXNpdG9yX2lkIjoiNjE3MzQ0MTA1MzgwOTM2NjE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd53d7fb25a671ac02c064312fa0e1b46d138b135d7a1383c8139f7850ae4967e
hovercard-subject-tagissue:506187033
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PythonCharmers/python-future/508/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aa6f3d8ba2c2793ec20c90d90ececd28849e33c8c60e9f951bf9ab35dd125133/PythonCharmers/python-future/issues/508
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aa6f3d8ba2c2793ec20c90d90ececd28849e33c8c60e9f951bf9ab35dd125133/PythonCharmers/python-future/issues/508
og:image:altHi all. I know that Python-3.8.0-rc1 is not supported yet but i wish to point out following error anyway: ____________________________ HandlerTests.test_ftp _____________________________ self =
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesagitter
hostnamegithub.com
expected-hostnamegithub.com
Nonef33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77
turbo-cache-controlno-preview
go-importgithub.com/PythonCharmers/python-future git https://github.com/PythonCharmers/python-future.git
octolytics-dimension-user_id3365815
octolytics-dimension-user_loginPythonCharmers
octolytics-dimension-repository_id11403699
octolytics-dimension-repository_nwoPythonCharmers/python-future
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id11403699
octolytics-dimension-repository_network_root_nwoPythonCharmers/python-future
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release48f380098b30acbb700b04f1724481ca10d574fc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PythonCharmers/python-future/issues/508#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPythonCharmers%2Fpython-future%2Fissues%2F508
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPythonCharmers%2Fpython-future%2Fissues%2F508
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PythonCharmers%2Fpython-future
Reloadhttps://github.com/PythonCharmers/python-future/issues/508
Reloadhttps://github.com/PythonCharmers/python-future/issues/508
Reloadhttps://github.com/PythonCharmers/python-future/issues/508
PythonCharmers https://github.com/PythonCharmers
python-futurehttps://github.com/PythonCharmers/python-future
Notifications https://github.com/login?return_to=%2FPythonCharmers%2Fpython-future
Fork 295 https://github.com/login?return_to=%2FPythonCharmers%2Fpython-future
Star 1.2k https://github.com/login?return_to=%2FPythonCharmers%2Fpython-future
Code https://github.com/PythonCharmers/python-future
Issues 184 https://github.com/PythonCharmers/python-future/issues
Pull requests 5 https://github.com/PythonCharmers/python-future/pulls
Actions https://github.com/PythonCharmers/python-future/actions
Projects 0 https://github.com/PythonCharmers/python-future/projects
Wiki https://github.com/PythonCharmers/python-future/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/PythonCharmers/python-future/security
Please reload this pagehttps://github.com/PythonCharmers/python-future/issues/508
Insights https://github.com/PythonCharmers/python-future/pulse
Code https://github.com/PythonCharmers/python-future
Issues https://github.com/PythonCharmers/python-future/issues
Pull requests https://github.com/PythonCharmers/python-future/pulls
Actions https://github.com/PythonCharmers/python-future/actions
Projects https://github.com/PythonCharmers/python-future/projects
Wiki https://github.com/PythonCharmers/python-future/wiki
Security https://github.com/PythonCharmers/python-future/security
Insights https://github.com/PythonCharmers/python-future/pulse
New issuehttps://github.com/login?return_to=https://github.com/PythonCharmers/python-future/issues/508
New issuehttps://github.com/login?return_to=https://github.com/PythonCharmers/python-future/issues/508
#516https://github.com/PythonCharmers/python-future/pull/516
[future-0.18.0] test urllib2 failed with Python3.8https://github.com/PythonCharmers/python-future/issues/508#top
#516https://github.com/PythonCharmers/python-future/pull/516
https://github.com/sagitter
https://github.com/sagitter
sagitterhttps://github.com/sagitter
on Oct 12, 2019https://github.com/PythonCharmers/python-future/issues/508#issue-506187033
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.