Title: doctest _load_testfile function -- newline handling seems incorrect · Issue #46137 · python/cpython · GitHub
Open Graph Title: doctest _load_testfile function -- newline handling seems incorrect · Issue #46137 · python/cpython
X Title: doctest _load_testfile function -- newline handling seems incorrect · Issue #46137 · python/cpython
Description: BPO 1812 Nosy @abalkin, @pdonis, @merwok, @zware, @miss-islington PRs #17385#19175#19176#24359 Files doctest-fixes.diff: Diff against revision 59907 showing suggested fixdoctest-fixes1.diff: Revised diff against revision 59932doctest-fix...
Open Graph Description: BPO 1812 Nosy @abalkin, @pdonis, @merwok, @zware, @miss-islington PRs #17385#19175#19176#24359 Files doctest-fixes.diff: Diff against revision 59907 showing suggested fixdoctest-fixes1.diff: Revise...
X Description: BPO 1812 Nosy @abalkin, @pdonis, @merwok, @zware, @miss-islington PRs #17385#19175#19176#24359 Files doctest-fixes.diff: Diff against revision 59907 showing suggested fixdoctest-fixes1.diff: Revise...
Opengraph URL: https://github.com/python/cpython/issues/46137
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"doctest _load_testfile function -- newline handling seems incorrect","articleBody":"BPO | [1812](https://bugs.python.org/issue1812)\n--- | :---\nNosy | @abalkin, @pdonis, @merwok, @zware, @miss-islington\nPRs | \u003cli>python/cpython#17385\u003c/li>\u003cli>python/cpython#19175\u003c/li>\u003cli>python/cpython#19176\u003c/li>\u003cli>python/cpython#24359\u003c/li>\nFiles | \u003cli>[doctest-fixes.diff](https://bugs.python.org/file9138/doctest-fixes.diff \"Uploaded as text/plain at 2008-01-12.05:57:31 by @pdonis\"): Diff against revision 59907 showing suggested fix\u003c/li>\u003cli>[doctest-fixes1.diff](https://bugs.python.org/file9142/doctest-fixes1.diff \"Uploaded as text/plain at 2008-01-12.18:32:32 by @pdonis\"): Revised diff against revision 59932\u003c/li>\u003cli>[doctest-fixes2.diff](https://bugs.python.org/file18063/doctest-fixes2.diff \"Uploaded as text/plain at 2010-07-19.13:51:10 by @pdonis\"): Revised diff against revision 82970\u003c/li>\u003cli>[doctest-fixes3.diff](https://bugs.python.org/file18066/doctest-fixes3.diff \"Uploaded as text/plain at 2010-07-19.18:37:29 by @pdonis\"): Revised diff against revision 82970, fixes patch apply issue\u003c/li>\u003cli>[doctest-fixes-py3k.diff](https://bugs.python.org/file18070/doctest-fixes-py3k.diff \"Uploaded as text/plain at 2010-07-19.22:24:12 by @pdonis\"): Diff against py3k branch, revision 82984\u003c/li>\u003cli>[doctest_testfile.txt](https://bugs.python.org/file18071/doctest_testfile.txt \"Uploaded as text/plain at 2010-07-19.22:37:57 by @pdonis\"): Raw doctest_testfile.txt for python 2.7 trunk\u003c/li>\u003cli>[doctest_testfile.txt.py3k](https://bugs.python.org/file18072/doctest_testfile.txt.py3k \"Uploaded as text/plain at 2010-07-19.22:38:30 by @pdonis\"): Raw doctest_testfile.txt for py3k branch\u003c/li>\u003cli>[doctest-fixes4.diff](https://bugs.python.org/file18117/doctest-fixes4.diff \"Uploaded as text/plain at 2010-07-22.01:44:31 by @pdonis\"): Diff against trunk with improved test method\u003c/li>\u003cli>[doctest-fixes5.diff](https://bugs.python.org/file18118/doctest-fixes5.diff \"Uploaded as text/plain at 2010-07-22.02:07:39 by @pdonis\"): Diff against trunk rev 83044 with improved test method, py3k comments removed\u003c/li>\u003cli>[doctest-fixes5-py3k.diff](https://bugs.python.org/file18119/doctest-fixes5-py3k.diff \"Uploaded as text/plain at 2010-07-22.02:37:54 by @pdonis\"): Diff against py3k branch rev 83044 with improved test method\u003c/li>\u003cli>[doctest-fixes6.diff](https://bugs.python.org/file18133/doctest-fixes6.diff \"Uploaded as text/plain at 2010-07-22.21:07:39 by @pdonis\"): Diff against release27-maint branch rev 83060 with further improvments\u003c/li>\u003cli>[doctest-fixes6-py3k.diff](https://bugs.python.org/file18134/doctest-fixes6-py3k.diff \"Uploaded as text/plain at 2010-07-22.21:16:52 by @pdonis\"): Diff against py3k branch rev 83060 with further improvements\u003c/li>\u003cli>[doctest-fixes7-py3k.diff](https://bugs.python.org/file26505/doctest-fixes7-py3k.diff \"Uploaded as text/plain at 2012-07-25.02:07:26 by @pdonis\"): Updated patch against Mercurial default branch\u003c/li>\u003cli>[doctest-fixes8-py3k.diff](https://bugs.python.org/file26508/doctest-fixes8-py3k.diff \"Uploaded as text/plain at 2012-07-25.03:44:37 by @pdonis\"): Updated patch to ensure tests pass with -v flag\u003c/li>\n\n\u003csup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup>\n\n\u003cdetails>\u003csummary>Show more details\u003c/summary>\u003cp>\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2020-03-26.16:26:07.378>\ncreated_at = \u003cDate 2008-01-12.05:57:33.772>\nlabels = ['easy', 'type-bug', '3.8', '3.9', '3.7', 'tests']\ntitle = 'doctest _load_testfile function -- newline handling seems incorrect'\nupdated_at = \u003cDate 2021-03-02.17:06:28.028>\nuser = 'https://github.com/pdonis'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2021-03-02.17:06:28.028>\nactor = 'zach.ware'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2020-03-26.16:26:07.378>\ncloser = 'zach.ware'\ncomponents = ['Tests']\ncreation = \u003cDate 2008-01-12.05:57:33.772>\ncreator = 'pdonis'\ndependencies = []\nfiles = ['9138', '9142', '18063', '18066', '18070', '18071', '18072', '18117', '18118', '18119', '18133', '18134', '26505', '26508']\nhgrepos = []\nissue_num = 1812\nkeywords = ['patch', 'easy']\nmessage_count = 38.0\nmessages = ['59801', '59802', '59834', '110706', '110755', '110767', '110779', '110795', '110808', '110813', '110815', '110822', '110824', '110825', '111143', '111144', '111148', '111180', '111215', '111218', '111299', '111304', '111314', '111351', '111361', '111392', '112980', '166348', '166352', '357468', '360436', '361926', '361927', '365086', '365090', '365091', '365092', '387940']\nnosy_count = 5.0\nnosy_names = ['belopolsky', 'pdonis', 'eric.araujo', 'zach.ware', 'miss-islington']\npr_nums = ['17385', '19175', '19176', '24359']\npriority = 'low'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue1812'\nversions = ['Python 3.7', 'Python 3.8', 'Python 3.9']\n```\n\n\u003c/p>\u003c/details>\n","author":{"url":null,"@type":"Person","name":"pdonis"},"datePublished":"2008-01-12T05:57:34Z","url":"https://github.com/python/cpython/issues/46137"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:78dd35b0-0f88-4918-7b41-72ef7c36db76 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1CA:11842E:72BCA:9F27F:6B0061CA |
| html-safe-nonce | 2310da93ed1141536f6671f4c7aa0b36566e8665a14aa373be1fc82727d73457 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUNBOjExODQyRTo3MkJDQTo5RjI3Rjo2QjAwNjFDQSIsInZpc2l0b3JfaWQiOiIzNDM3OTQyMzAzNzExMzIyNTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2d299ce11d263845e9998514a3ff377a798ab5c11ee82d6862202593259bc33c |
| hovercard-subject-tag | issue:1198827317 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/46137/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98d85fd164b9711c5c5920587d20c2176f9e5cca00a03ed2ad48b2eaa3b4da27/python/cpython/issues/46137 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98d85fd164b9711c5c5920587d20c2176f9e5cca00a03ed2ad48b2eaa3b4da27/python/cpython/issues/46137 |
| og:image:alt | BPO 1812 Nosy @abalkin, @pdonis, @merwok, @zware, @miss-islington PRs #17385#19175#19176#24359 Files doctest-fixes.diff: Diff against revision 59907 showing suggested fixdoctest-fixes1.diff: Revise... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pdonis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width