Title: Python 3.9 test failures · Issue #809 · bpython/bpython · GitHub
Open Graph Title: Python 3.9 test failures · Issue #809 · bpython/bpython
X Title: Python 3.9 test failures · Issue #809 · bpython/bpython
Description: A few tests fail on Python 3.9.0b1: ====================================================================== ERROR: test_nonsense (bpython.test.test_simpleeval.TestEvaluateCurrentExpression) ------------------------------------------------...
Open Graph Description: A few tests fail on Python 3.9.0b1: ====================================================================== ERROR: test_nonsense (bpython.test.test_simpleeval.TestEvaluateCurrentExpression) --------...
X Description: A few tests fail on Python 3.9.0b1: ====================================================================== ERROR: test_nonsense (bpython.test.test_simpleeval.TestEvaluateCurrentExpression) --------...
Opengraph URL: https://github.com/bpython/bpython/issues/809
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python 3.9 test failures","articleBody":"A few tests fail on Python 3.9.0b1:\r\n\r\n```pytb\r\n======================================================================\r\nERROR: test_nonsense (bpython.test.test_simpleeval.TestEvaluateCurrentExpression)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 230, in evaluate_current_expression\r\n return simple_eval(largest_ast, namespace)\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 167, in simple_eval\r\n return _convert(node_or_string)\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 165, in _convert\r\n raise ValueError(\"malformed string\")\r\nValueError: malformed string\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/test/test_simpleeval.py\", line 129, in test_nonsense\r\n self.assertEvaled(\"--- [2][0].a|bc\", 2)\r\n File \"/tmp/bpython/bpython/test/test_simpleeval.py\", line 107, in assertEvaled\r\n evaluate_current_expression(cursor_offset, line, ns), value\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 232, in evaluate_current_expression\r\n raise EvaluationError(\"Could not safely evaluate\")\r\nbpython.simpleeval.EvaluationError: Could not safely evaluate\r\n\r\n======================================================================\r\nERROR: test_with_namespace (bpython.test.test_simpleeval.TestEvaluateCurrentExpression)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 230, in evaluate_current_expression\r\n return simple_eval(largest_ast, namespace)\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 167, in simple_eval\r\n return _convert(node_or_string)\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 165, in _convert\r\n raise ValueError(\"malformed string\")\r\nValueError: malformed string\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/test/test_simpleeval.py\", line 134, in test_with_namespace\r\n self.assertEvaled(\"a[1].a|bc\", \"d\", {\"a\": \"adsf\"})\r\n File \"/tmp/bpython/bpython/test/test_simpleeval.py\", line 107, in assertEvaled\r\n evaluate_current_expression(cursor_offset, line, ns), value\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 232, in evaluate_current_expression\r\n raise EvaluationError(\"Could not safely evaluate\")\r\nbpython.simpleeval.EvaluationError: Could not safely evaluate\r\n\r\n======================================================================\r\nERROR: Literals can be indexed into\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/test/test_simpleeval.py\", line 28, in test_indexing\r\n self.assertEqual(simple_eval(\"[1,2][0]\"), 1)\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 167, in simple_eval\r\n return _convert(node_or_string)\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 165, in _convert\r\n raise ValueError(\"malformed string\")\r\nValueError: malformed string\r\n\r\n======================================================================\r\nERROR: Names can be lookup up in a namespace\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/test/test_simpleeval.py\", line 35, in test_name_lookup\r\n self.assertEqual(simple_eval(\"a[b]\", {\"a\": {\"c\": 1}, \"b\": \"c\"}), 1)\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 167, in simple_eval\r\n return _convert(node_or_string)\r\n File \"/tmp/bpython/bpython/simpleeval.py\", line 165, in _convert\r\n raise ValueError(\"malformed string\")\r\nValueError: malformed string\r\n\r\n======================================================================\r\nFAIL: test_att_matches_found_on_instance (bpython.test.test_autocomplete.TestExpressionAttributeCompletion)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/test/test_autocomplete.py\", line 316, in test_att_matches_found_on_instance\r\n self.assertSetEqual(\r\nAssertionError: Items in the second set but not the first:\r\n'method'\r\n'a'\r\n'b'\r\n\r\n======================================================================\r\nFAIL: test_dictionaries_complete (bpython.test.test_autocomplete.TestExpressionAttributeCompletion)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/test/test_autocomplete.py\", line 365, in test_dictionaries_complete\r\n self.assertSetEqual(\r\nAssertionError: Items in the second set but not the first:\r\n'method'\r\n'a'\r\n'b'\r\n\r\n======================================================================\r\nFAIL: test_literals_complete (bpython.test.test_autocomplete.TestExpressionAttributeCompletion)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/test/test_autocomplete.py\", line 359, in test_literals_complete\r\n self.assertSetEqual(\r\nAssertionError: Items in the second set but not the first:\r\n'method'\r\n'a'\r\n'b'\r\n\r\n======================================================================\r\nFAIL: test_tuples_complete (bpython.test.test_autocomplete.TestExpressionAttributeCompletion)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/tmp/bpython/bpython/test/test_autocomplete.py\", line 336, in test_tuples_complete\r\n self.assertSetEqual(\r\nAssertionError: Items in the second set but not the first:\r\n'method'\r\n'a'\r\n'b'\r\n\r\n----------------------------------------------------------------------\r\nRan 329 tests in 12.934s\r\n\r\nFAILED (SKIP=27, errors=4, failures=4)\r\n```","author":{"url":"https://github.com/mgorny","@type":"Person","name":"mgorny"},"datePublished":"2020-06-03T17:29:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/809/bpython/issues/809"}
| 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:4ff6a04f-38fd-1419-2778-2c937729f6b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB70:288B8B:5A1B22A:7B8FAF4:69672097 |
| html-safe-nonce | 8162ac0d473e7eb589c1d0192c7c5252c9a067d61019e0915e2288fbacbaae2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjcwOjI4OEI4Qjo1QTFCMjJBOjdCOEZBRjQ6Njk2NzIwOTciLCJ2aXNpdG9yX2lkIjoiNDgxMjM2NTQ4ODIwODY5MjcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e8308d9babffd576a8e8cd00ac591f677cccc87724407f0b5ac98c70e661c775 |
| hovercard-subject-tag | issue:630184331 |
| 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/bpython/bpython/809/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee82e736b05cc1e178a481aa0802f68fdc202e72fe416997968fd6dbf64d4810/bpython/bpython/issues/809 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee82e736b05cc1e178a481aa0802f68fdc202e72fe416997968fd6dbf64d4810/bpython/bpython/issues/809 |
| og:image:alt | A few tests fail on Python 3.9.0b1: ====================================================================== ERROR: test_nonsense (bpython.test.test_simpleeval.TestEvaluateCurrentExpression) --------... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgorny |
| hostname | github.com |
| expected-hostname | github.com |
| None | a496442d201d5a53eb3cdb4b9cbe5ad1efbbd133a6468868aadcd65d75edb119 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| 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 | d8ceb5e24e3971870922378f057df5984cd9dc7c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width