Title: test_single_exception_stacktrace failed with python-3.11 · Issue #608 · PythonCharmers/python-future · GitHub
Open Graph Title: test_single_exception_stacktrace failed with python-3.11 · Issue #608 · PythonCharmers/python-future
X Title: test_single_exception_stacktrace failed with python-3.11 · Issue #608 · PythonCharmers/python-future
Description: Hi all. test_single_exception_stacktrace is failing with Python-3.11.0~b5: + PYTHONPATH=/builddir/build/BUILD/future-0.18.2/python3/build/lib + py.test-3.11 -k 'not test_pow and not test_urllib2' -q .........................................
Open Graph Description: Hi all. test_single_exception_stacktrace is failing with Python-3.11.0~b5: + PYTHONPATH=/builddir/build/BUILD/future-0.18.2/python3/build/lib + py.test-3.11 -k 'not test_pow and not test_urllib2' -...
X Description: Hi all. test_single_exception_stacktrace is failing with Python-3.11.0~b5: + PYTHONPATH=/builddir/build/BUILD/future-0.18.2/python3/build/lib + py.test-3.11 -k 'not test_pow and not test_urllib...
Opengraph URL: https://github.com/PythonCharmers/python-future/issues/608
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_single_exception_stacktrace failed with python-3.11","articleBody":"Hi all.\r\n\r\n`test_single_exception_stacktrace` is failing with Python-3.11.0~b5:\r\n\r\n```\r\n+ PYTHONPATH=/builddir/build/BUILD/future-0.18.2/python3/build/lib\r\n+ py.test-3.11 -k 'not test_pow and not test_urllib2' -q\r\n...............................................................s........ [ 6%]\r\n...s....................sss..............s.............................. [ 13%]\r\n..s..................x........s......................................... [ 20%]\r\n..................s...x...x..x..x.......s.xsss.x....x...x.....x.....x.xx [ 26%]\r\n............................................ss.......................... [ 33%]\r\n........................................................................ [ 40%]\r\n..s..........................................x.........sssss............ [ 47%]\r\n.............................................................s.s........ [ 53%]\r\n...........x...x...xx........................ss..........s....ss........ [ 60%]\r\n.....s.....ss....................s............................s..x...... [ 67%]\r\n........................................................................ [ 73%]\r\n...........s..................................s.....s..s................ [ 80%]\r\n....................s.s..............s.sssssssssss...................... [ 87%]\r\n..............................F....x..xxxxxx...x.xxxxxx....xx..xx..x.xx. [ 94%]\r\nxx...x....x...x.......................s....................x.... [100%]\r\n=================================== FAILURES ===================================\r\n__________________ TestCause.test_single_exception_stacktrace __________________\r\nself = \u003ctest_future.test_utils.TestCause testMethod=test_single_exception_stacktrace>\r\n def test_single_exception_stacktrace(self):\r\n expected = '''Traceback (most recent call last):\r\n File \"/opt/python-future/tests/test_future/test_utils.py\", line 328, in test_single_exception_stacktrace\r\n raise CustomException('ERROR')\r\n '''\r\n if sys.version_info >= (3, 11):\r\n expected += ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n'\r\n if PY2:\r\n expected += 'CustomException: ERROR\\n'\r\n else:\r\n expected += 'test_future.test_utils.CustomException: ERROR\\n'\r\n \r\n try:\r\n> raise CustomException('ERROR')\r\nE test_future.test_utils.CustomException: ERROR\r\ntests/test_future/test_utils.py:354: CustomException\r\nDuring handling of the above exception, another exception occurred:\r\nself = \u003ctest_future.test_utils.TestCause testMethod=test_single_exception_stacktrace>\r\n def test_single_exception_stacktrace(self):\r\n expected = '''Traceback (most recent call last):\r\n File \"/opt/python-future/tests/test_future/test_utils.py\", line 328, in test_single_exception_stacktrace\r\n raise CustomException('ERROR')\r\n '''\r\n if sys.version_info >= (3, 11):\r\n expected += ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n'\r\n if PY2:\r\n expected += 'CustomException: ERROR\\n'\r\n else:\r\n expected += 'test_future.test_utils.CustomException: ERROR\\n'\r\n \r\n try:\r\n raise CustomException('ERROR')\r\n except:\r\n ret = re.sub(r'\"[^\"]*tests/test_future', '\"/opt/python-future/tests/test_future', traceback.format_exc())\r\n ret = re.sub(r', line \\d+,', ', line 328,', ret)\r\n> self.assertEqual(expected, ret)\r\nE AssertionError: 'Trac[173 chars]\\')\\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\ntest_[38 chars]OR\\n' != 'Trac[173 chars]\\')\\ntest_future.test_utils.CustomException: ERROR\\n'\r\nE Traceback (most recent call last):\r\nE File \"/opt/python-future/tests/test_future/test_utils.py\", line 328, in test_single_exception_stacktrace\r\nE raise CustomException('ERROR')\r\nE - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nE test_future.test_utils.CustomException: ERROR\r\ntests/test_future/test_utils.py:358: AssertionError\r\n=============================== warnings summary ===============================\r\nbuild/lib/future/standard_library/__init__.py:65\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/standard_library/__init__.py:65: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses\r\n import imp\r\ntests/test_future/test_builtins.py:267\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_builtins.py:267: DeprecationWarning: invalid escape sequence '\\u'\r\n (str(b'\\u0663\\u0661\\u0664 ','raw-unicode-escape'), 314),\r\ntests/test_future/test_builtins.py:289\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_builtins.py:289: DeprecationWarning: invalid escape sequence '\\u'\r\n (str(b'\\u0663\\u0661\\u0664 ','raw-unicode-escape'), 314),\r\nbuild/lib/future/backports/test/support.py:1977\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/test/support.py:1977: DeprecationWarning: invalid escape sequence '\\d'\r\n m = re.match(\"2.6.(\\d{1,2})\", kernel_version)\r\nbuild/lib/future/backports/email/message.py:13\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/email/message.py:13: DeprecationWarning: 'uu' is deprecated and slated for removal in Python 3.13\r\n import uu\r\nbuild/lib/future/backports/email/utils.py:68\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/email/utils.py:68: DeprecationWarning: invalid escape sequence '\\A'\r\n '([^\\ud800-\\udbff]|\\A)[\\udc00-\\udfff]([^\\udc00-\\udfff]|\\Z)').search\r\nbuild/lib/future/backports/urllib/parse.py:957\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/urllib/parse.py:957: DeprecationWarning: invalid escape sequence '\\?'\r\n _queryprog = re.compile('^(.*)\\?([^?]*)$')\r\nbuild/lib/libfuturize/fixer_util.py:11\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/libfuturize/fixer_util.py:11: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+\r\n from lib2to3.fixer_util import (FromImport, Newline, is_import,\r\ntests/test_future/test_htmlparser.py:685\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_htmlparser.py:685: DeprecationWarning: invalid escape sequence '\\='\r\n \"\u003ca $>\u003cb $=%>\u003cc \\=/>\",\r\nbuild/lib/future/backports/html/parser.py:31\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/html/parser.py:31: DeprecationWarning: invalid escape sequence '\\s'\r\n tagfind = re.compile('([a-zA-Z][-.a-zA-Z0-9:_]*)(?:\\s|/(?!>))*')\r\nbuild/lib/future/backports/html/parser.py:79\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/html/parser.py:79: DeprecationWarning: invalid escape sequence '\\s'\r\n endtagfind = re.compile('\u003c/\\s*([a-zA-Z][-.a-zA-Z0-9:_]*)\\s*>')\r\ntests/test_future/test_http_cookiejar.py:1034\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_http_cookiejar.py:1034: DeprecationWarning: invalid escape sequence '\\$'\r\n self.assertRegex(h, \"\\$Port([^=]|$)\",\r\ntests/test_future/test_http_cookiejar.py:1373\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_http_cookiejar.py:1373: DeprecationWarning: invalid escape sequence '\\s'\r\n '\\s*\\$Path=\"\\/acme\"')\r\ntests/test_future/test_http_cookiejar.py:1375\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_http_cookiejar.py:1375: DeprecationWarning: invalid escape sequence '\\s'\r\n '\\s*\\$Path=\"\\/acme\"')\r\nbuild/lib/future/backports/http/client.py:1\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/http/client.py:1: DeprecationWarning: invalid escape sequence '\\_'\r\n \"\"\"HTTP/1.1 client library\r\nbuild/lib/future/backports/email/feedparser.py:37\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/email/feedparser.py:37: DeprecationWarning: invalid escape sequence '\\Z'\r\n NLCRE_eol = re.compile('(\\r\\n|\\r|\\n)\\Z')\r\nbuild/lib/future/backports/http/cookiejar.py:212\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/http/cookiejar.py:212: DeprecationWarning: invalid escape sequence '\\d'\r\n \"(\\d\\d\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$\", re.ASCII)\r\nbuild/lib/future/backports/http/cookiejar.py:289\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/http/cookiejar.py:289: DeprecationWarning: invalid escape sequence '\\d'\r\n \"\"\"^\r\nbuild/lib/future/backports/http/cookiejar.py:423\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/http/cookiejar.py:423: DeprecationWarning: invalid escape sequence '\\s'\r\n non_junk, nr_junk_chars = re.subn(\"^[=\\s;]*\", \"\", text)\r\ntests/test_future/test_urllib.py:536\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_urllib.py:536: DeprecationWarning: invalid escape sequence '\\^'\r\n \"\"\"Tests for urllib.quote() and urllib.quote_plus()\r\ntests/test_future/test_urllib.py:611\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_urllib.py:611: DeprecationWarning: invalid escape sequence '\\^'\r\n should_quote.append('\u003c>#%\"{}|\\^[]`')\r\ntests/test_future/test_urllib_toplevel.py:551\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_urllib_toplevel.py:551: DeprecationWarning: invalid escape sequence '\\^'\r\n \"\"\"Tests for urllib.quote() and urllib.quote_plus()\r\ntests/test_future/test_urllib_toplevel.py:626\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_urllib_toplevel.py:626: DeprecationWarning: invalid escape sequence '\\^'\r\n should_quote.append('\u003c>#%\"{}|\\^[]`')\r\nbuild/lib/past/types/oldstr.py:23\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/past/types/oldstr.py:23: DeprecationWarning: invalid escape sequence '\\d'\r\n \"\"\"\r\ntests/test_future/test_htmlparser.py: 4 warnings\r\ntests/test_future/test_http_cookiejar.py: 5 warnings\r\ntests/test_future/test_urllibnet.py: 3 warnings\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/test/support.py:1656: DeprecationWarning: unittest.makeSuite() is deprecated and will be removed in Python 3.13. Please use unittest.TestLoader.loadTestsFromTestCase() instead.\r\n suite.addTest(unittest.makeSuite(cls))\r\ntests/test_future/test_httplib.py::SourceAddressTest::testHTTPSConnectionSourceAddress\r\ntests/test_future/test_httplib.py::HTTPSTest::test_attributes\r\ntests/test_future/test_httplib.py::HTTPSTest::test_host_port\r\ntests/test_future/test_httplib.py::HTTPSTest::test_host_port\r\ntests/test_future/test_httplib.py::HTTPSTest::test_host_port\r\ntests/test_future/test_httplib.py::HTTPSTest::test_host_port\r\ntests/test_future/test_httplib.py::HTTPSTest::test_host_port\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/future/backports/http/client.py:1218: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated\r\n context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)\r\ntests/test_future/test_int.py::IntTestCases::test_intconversion\r\ntests/test_future/test_int.py::IntTestCases::test_intconversion\r\ntests/test_future/test_int.py::IntTestCases::test_intconversion\r\ntests/test_future/test_int.py::IntTestCases::test_intconversion\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_int.py:401: DeprecationWarning: The delegation of int() to __trunc__ is deprecated.\r\n int(TruncReturnsNonIntegral())\r\ntests/test_future/test_int.py::IntTestCases::test_intconversion\r\ntests/test_future/test_int.py::IntTestCases::test_intconversion\r\ntests/test_future/test_int.py::IntTestCases::test_intconversion\r\ntests/test_future/test_int.py::IntTestCases::test_intconversion\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_int.py:421: DeprecationWarning: The delegation of int() to __trunc__ is deprecated.\r\n int(TruncReturnsBadInt())\r\ntests/test_future/test_standard_library.py::TestStandardLibraryReorganization::test_reload\r\n /usr/lib64/python3.11/importlib/__init__.py:169: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses\r\n _bootstrap._exec(spec, module)\r\ntests/test_future/test_urllibnet.py::urlopenNetworkTests::test_getcode\r\ntests/test_future/test_urllibnet.py::test_main\r\n /builddir/build/BUILD/future-0.18.2/python3/tests/test_future/test_urllibnet.py:103: DeprecationWarning: FancyURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods\r\n open_url = urllib_request.FancyURLopener().open(URL)\r\ntests/test_past/test_oldstr.py::TestOldStr::test_unescape\r\n /builddir/build/BUILD/future-0.18.2/python3/build/lib/past/types/oldstr.py:37: DeprecationWarning: invalid escape sequence '\\c'\r\n return s.encode().decode('unicode_escape')\r\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\r\n=========================== short test summary info ============================\r\nFAILED tests/test_future/test_utils.py::TestCause::test_single_exception_stacktrace\r\n1 failed, 973 passed, 52 skipped, 57 deselected, 46 xfailed, 55 warnings in 26.95s\r\n```","author":{"url":"https://github.com/sagitter","@type":"Person","name":"sagitter"},"datePublished":"2022-08-09T15:29:08Z","url":"https://github.com/PythonCharmers/python-future/issues/608"}
| 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:38981665-5e86-dacb-756b-229c88d60c88 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 827C:14E28B:21DBC06:2C3BBEC:6B041553 |
| html-safe-nonce | 0df7e2a54e788b1915139e90c074eee272b9267f9d7d7b9826fd4dba0322ff41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjdDOjE0RTI4QjoyMURCQzA2OjJDM0JCRUM6NkIwNDE1NTMiLCJ2aXNpdG9yX2lkIjoiODA1OTA3NTU2MjI2ODAwNTcxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 91407f50f9b3bd3a36d44e6944fc9422411af4ca4aaafde95939266fcf477ba6 |
| hovercard-subject-tag | issue:1333429286 |
| 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/PythonCharmers/python-future/608/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a94805221b3ece06168eddceeea1468c82187a4e4bdf4fbfacf9b6eab7017933/PythonCharmers/python-future/issues/608 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a94805221b3ece06168eddceeea1468c82187a4e4bdf4fbfacf9b6eab7017933/PythonCharmers/python-future/issues/608 |
| og:image:alt | Hi all. test_single_exception_stacktrace is failing with Python-3.11.0~b5: + PYTHONPATH=/builddir/build/BUILD/future-0.18.2/python3/build/lib + py.test-3.11 -k 'not test_pow and not test_urllib2' -... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sagitter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/PythonCharmers/python-future git https://github.com/PythonCharmers/python-future.git |
| octolytics-dimension-user_id | 3365815 |
| octolytics-dimension-user_login | PythonCharmers |
| octolytics-dimension-repository_id | 11403699 |
| octolytics-dimension-repository_nwo | PythonCharmers/python-future |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11403699 |
| octolytics-dimension-repository_network_root_nwo | PythonCharmers/python-future |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width