Title: 0.18.2 + master: pytest fails and warnings · Issue #593 · PythonCharmers/python-future · GitHub
Open Graph Title: 0.18.2 + master: pytest fails and warnings · Issue #593 · PythonCharmers/python-future
X Title: 0.18.2 + master: pytest fails and warnings · Issue #593 · PythonCharmers/python-future
Description: Actually I've used everything up to 3f40bd7 + #544 I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account. "setup.py build" "setup.py in...
Open Graph Description: Actually I've used everything up to 3f40bd7 + #544 I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-roo...
X Description: Actually I've used everything up to 3f40bd7 + #544 I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages ...
Opengraph URL: https://github.com/PythonCharmers/python-future/issues/593
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"0.18.2 + master: pytest fails and warnings","articleBody":"Actually I've used everything up to 3f40bd75 + https://github.com/PythonCharmers/python-future/pull/544\r\n\r\nI'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.\r\n- \"setup.py build\"\r\n- \"setup.py install --root \u003c/install/prefix\u003e\"\r\n- \"pytest with PYTHONPATH pointing to sitearch and sitelib inside \u003c/install/prefix\u003e\r\n\r\nLooks like there some issue\r\n```console\r\n+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-future-0.18.2-11.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-future-0.18.2-11.fc35.x86_64/usr/lib/python3.8/site-packages\r\n+ /usr/bin/pytest -ra -p no:randomly\r\n=========================================================================== test session starts ============================================================================\r\nplatform linux -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-0.13.1\r\nbenchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)\r\nrootdir: /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2, configfile: pytest.ini\r\nplugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, aspectlib-1.5.2, toolbox-0.5, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, xprocess-0.18.1, black-0.3.12, anyio-3.3.0, asyncio-0.15.1, trio-0.7.0, subtests-0.5.0, isort-2.0.0, hypothesis-6.14.6, mock-3.6.1, profiling-1.7.0, Faker-8.12.1, nose2pytest-1.0.8, pyfakefs-4.5.1, tornado-0.8.1, twisted-1.13.3\r\ncollected 1132 items\r\n\r\ntests/test_future/test_backports.py .................................... [ 3%]\r\ntests/test_future/test_buffer.py ................... [ 4%]\r\ntests/test_future/test_builtins.py ....................s....................sss..............sF............ [ 11%]\r\ntests/test_future/test_bytes.py ....................s..................x........s............... [ 16%]\r\ntests/test_future/test_chainmap.py ............ [ 17%]\r\ntests/test_future/test_common_iterators.py .... [ 18%]\r\ntests/test_future/test_decorators.py .. [ 18%]\r\ntests/test_future/test_dict.py .............. [ 19%]\r\ntests/test_future/test_email_generation.py . [ 19%]\r\ntests/test_future/test_email_multipart.py .. [ 19%]\r\ntests/test_future/test_explicit_imports.py .. [ 20%]\r\ntests/test_future/test_futurize.py ........s...x...x..x..x.......s.xsss.x....x...x.....x.....x.xx. [ 25%]\r\ntests/test_future/test_html.py . [ 25%]\r\ntests/test_future/test_htmlparser.py ..........................................ss.......................... [ 31%]\r\ntests/test_future/test_http_cookiejar.py ........................................................... [ 37%]\r\ntests/test_future/test_httplib.py ...............s.............. [ 39%]\r\ntests/test_future/test_import_star.py ...... [ 40%]\r\ntests/test_future/test_imports_httplib.py . [ 40%]\r\ntests/test_future/test_imports_urllib.py .. [ 40%]\r\ntests/test_future/test_int.py ...................x.........s [ 43%]\r\ntests/test_future/test_int_old_division.py ssss [ 43%]\r\ntests/test_future/test_isinstance.py ................ [ 45%]\r\ntests/test_future/test_libfuturize_fixers.py ................................... [ 48%]\r\ntests/test_future/test_list.py .................... [ 49%]\r\ntests/test_future/test_magicsuper.py ..s.s... [ 50%]\r\ntests/test_future/test_object.py .............. [ 51%]\r\ntests/test_future/test_pasteurize.py ..x...x...xx [ 52%]\r\ntests/test_future/test_range.py ........................ [ 55%]\r\ntests/test_future/test_requests.py .. [ 55%]\r\ntests/test_future/test_standard_library.py ..........s.....s.............s......s... [ 58%]\r\ntests/test_future/test_str.py .................s............................s..x. [ 63%]\r\ntests/test_future/test_super.py ............... [ 64%]\r\ntests/test_future/test_surrogateescape.py .......... [ 65%]\r\ntests/test_future/test_urllib.py ...............................................................s................ [ 72%]\r\ntests/test_future/test_urllib2.py .........................F...s........................F [ 77%]\r\ntests/test_future/test_urllib_response.py . [ 77%]\r\ntests/test_future/test_urllib_toplevel.py .................s.....s..s....................................s................ [ 84%]\r\ntests/test_future/test_urllibnet.py ...s.......... [ 85%]\r\ntests/test_future/test_urlparse.py ................................. [ 88%]\r\ntests/test_future/test_utils.py ................... [ 90%]\r\ntests/test_past/test_basestring.py .. [ 90%]\r\ntests/test_past/test_builtins.py ...x..xxxxxx...x.xxxxxx....xx..xx..x.xx.xxx...x....x...x. [ 95%]\r\ntests/test_past/test_misc.py . [ 95%]\r\ntests/test_past/test_noniterators.py . [ 95%]\r\ntests/test_past/test_olddict.py .....................s............ [ 98%]\r\ntests/test_past/test_oldstr.py .... [ 99%]\r\ntests/test_past/test_translation.py ....x.... [100%]\r\n\r\n================================================================================= FAILURES =================================================================================\r\n___________________________________________________________________________ BuiltinTest.test_pow ___________________________________________________________________________\r\n\r\nself = \u003ctest_future.test_builtins.BuiltinTest testMethod=test_pow\u003e\r\n\r\n def test_pow(self):\r\n self.assertEqual(pow(0,0), 1)\r\n self.assertEqual(pow(0,1), 0)\r\n self.assertEqual(pow(1,0), 1)\r\n self.assertEqual(pow(1,1), 1)\r\n\r\n self.assertEqual(pow(2,0), 1)\r\n self.assertEqual(pow(2,10), 1024)\r\n self.assertEqual(pow(2,20), 1024*1024)\r\n self.assertEqual(pow(2,30), 1024*1024*1024)\r\n\r\n self.assertEqual(pow(-2,0), 1)\r\n self.assertEqual(pow(-2,1), -2)\r\n self.assertEqual(pow(-2,2), 4)\r\n self.assertEqual(pow(-2,3), -8)\r\n\r\n self.assertAlmostEqual(pow(0.,0), 1.)\r\n self.assertAlmostEqual(pow(0.,1), 0.)\r\n self.assertAlmostEqual(pow(1.,0), 1.)\r\n self.assertAlmostEqual(pow(1.,1), 1.)\r\n\r\n self.assertAlmostEqual(pow(2.,0), 1.)\r\n self.assertAlmostEqual(pow(2.,10), 1024.)\r\n self.assertAlmostEqual(pow(2.,20), 1024.*1024.)\r\n self.assertAlmostEqual(pow(2.,30), 1024.*1024.*1024.)\r\n\r\n self.assertAlmostEqual(pow(-2.,0), 1.)\r\n self.assertAlmostEqual(pow(-2.,1), -2.)\r\n self.assertAlmostEqual(pow(-2.,2), 4.)\r\n self.assertAlmostEqual(pow(-2.,3), -8.)\r\n\r\n for x in 2, int(2), 2.0:\r\n for y in 10, int(10), 10.0:\r\n for z in 1000, int(1000), 1000.0:\r\n if isinstance(x, float) or \\\r\n isinstance(y, float) or \\\r\n isinstance(z, float):\r\n self.assertRaises(TypeError, pow, x, y, z)\r\n else:\r\n self.assertAlmostEqual(pow(x, y, z), 24.0)\r\n\r\n self.assertAlmostEqual(pow(-1, 0.5), 1j)\r\n self.assertAlmostEqual(pow(-1, 1/3), 0.5 + 0.8660254037844386j)\r\n\r\n # Raises TypeError in Python \u003c v3.5, ValueError in v3.5:\r\n\u003e self.assertRaises((TypeError, ValueError), pow, -1, -2, 3)\r\nE AssertionError: (\u003cclass 'TypeError'\u003e, \u003cclass 'ValueError'\u003e) not raised by pow\r\n\r\ntests/test_future/test_builtins.py:1307: AssertionError\r\n__________________________________________________________________________ HandlerTests.test_ftp ___________________________________________________________________________\r\n\r\nself = \u003ctest_future.test_urllib2.HandlerTests testMethod=test_ftp\u003e\r\n\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 # MIME guessing works in Python 3.8!\r\n guessed_mime = None\r\n if sys.hexversion \u003e= 0x03080000:\r\n guessed_mime = \"image/gif\"\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\", guessed_mime),\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: None != 'image/gif'\r\n\r\ntests/test_future/test_urllib2.py:730: AssertionError\r\n________________________________________________________________________________ test_main _________________________________________________________________________________\r\n\r\nverbose = None\r\n\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\n\r\ntests/test_future/test_urllib2.py:1566:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n../../BUILDROOT/python-future-0.18.2-11.fc35.x86_64/usr/lib/python3.8/site-packages/future/backports/test/support.py:1665: in run_unittest\r\n _run_suite(suite)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nsuite = \u003cunittest.suite.TestSuite tests=[None, None, None, None, None, None]\u003e\r\n\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 \"/home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib2.py\", line 730, in test_ftp\r\nE self.assertEqual(headers.get(\"Content-type\"), mimetype)\r\nE AssertionError: None != 'image/gif'\r\n\r\n../../BUILDROOT/python-future-0.18.2-11.fc35.x86_64/usr/lib/python3.8/site-packages/future/backports/test/support.py:1640: TestFailed\r\n--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------\r\ntest_URLError_reasonstr (test_future.test_urllib2.TrivialTests) ... ok\r\ntest___all__ (test_future.test_urllib2.TrivialTests) ... ok\r\ntest_parse_http_list (test_future.test_urllib2.TrivialTests) ... ok\r\ntest_trivial (test_future.test_urllib2.TrivialTests) ... ok\r\ntest_add_non_handler (test_future.test_urllib2.OpenerDirectorTests) ... ok\r\ntest_badly_named_methods (test_future.test_urllib2.OpenerDirectorTests) ... ok\r\ntest_handled (test_future.test_urllib2.OpenerDirectorTests) ... ok\r\ntest_handler_order (test_future.test_urllib2.OpenerDirectorTests) ... ok\r\ntest_http_error (test_future.test_urllib2.OpenerDirectorTests) ... ok\r\ntest_method_deprecations (test_future.test_urllib2.OpenerDirectorTests) ... ok\r\ntest_processors (test_future.test_urllib2.OpenerDirectorTests) ... ok\r\ntest_raise (test_future.test_urllib2.OpenerDirectorTests) ... ok\r\ntest_basic_and_digest_auth_handlers (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_basic_auth (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_basic_auth_with_single_quoted_realm (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_basic_auth_with_unquoted_realm (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_cookie_redirect (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_cookies (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_errors (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_file (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_fixpath_in_weirdurls (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_ftp (test_future.test_urllib2.HandlerTests) ... FAIL\r\ntest_http (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_http_doubleslash (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_invalid_redirect (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_osx_proxy_bypass (test_future.test_urllib2.HandlerTests) ... skipped 'only relevant for OSX'\r\ntest_proxy (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_proxy_basic_auth (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_proxy_https (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_proxy_https_proxy_authorization (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_proxy_no_proxy (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_proxy_no_proxy_all (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_redirect (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_redirect_fragment (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_relative_redirect (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_unsupported_auth_basic_handler (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_unsupported_auth_digest_handler (test_future.test_urllib2.HandlerTests) ... ok\r\ntest_HTTPError_interface (test_future.test_urllib2.MiscTests)\r\nIssue 13211 reveals that HTTPError didn't implement the URLError ... ok\r\ntest_build_opener (test_future.test_urllib2.MiscTests) ... ok\r\ntest_HTTPError_interface_call (test_future.test_urllib2.RequestTests)\r\nIssue 15701 - HTTPError interface has info method available from URLError ... ok\r\ntest_data (test_future.test_urllib2.RequestTests) ... ok\r\ntest_get_full_url (test_future.test_urllib2.RequestTests) ... ok\r\ntest_get_host (test_future.test_urllib2.RequestTests) ... ok\r\ntest_get_host_unquote (test_future.test_urllib2.RequestTests) ... ok\r\ntest_get_type (test_future.test_urllib2.RequestTests) ... ok\r\ntest_method (test_future.test_urllib2.RequestTests) ... ok\r\ntest_proxy (test_future.test_urllib2.RequestTests) ... ok\r\ntest_selector (test_future.test_urllib2.RequestTests) ... ok\r\ntest_url_fragment (test_future.test_urllib2.RequestTests) ... ok\r\ntest_wrapped_url (test_future.test_urllib2.RequestTests) ... ok\r\ntest_password_manager (test_future.test_urllib2.RequestHdrsTests) ... ok\r\ntest_password_manager_default_port (test_future.test_urllib2.RequestHdrsTests)\r\nThe point to note here is that we can't guess the default port if ... ok\r\ntest_request_headers_dict (test_future.test_urllib2.RequestHdrsTests)\r\nThe Request.headers dictionary is not a documented interface. It ... ok\r\ntest_request_headers_methods (test_future.test_urllib2.RequestHdrsTests)\r\nNote the case normalization of header names here, to ... ok\r\n\r\n======================================================================\r\nFAIL: test_ftp (test_future.test_urllib2.HandlerTests)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n File \"/home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib2.py\", line 730, in test_ftp\r\n self.assertEqual(headers.get(\"Content-type\"), mimetype)\r\nAssertionError: None != 'image/gif'\r\n\r\n----------------------------------------------------------------------\r\nRan 54 tests in 0.096s\r\n\r\nFAILED (failures=1, skipped=1)\r\n============================================================================= warnings summary =============================================================================\r\ntests/test_future/test_builtins.py:266\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_builtins.py:266: DeprecationWarning: invalid escape sequence \\u\r\n (str(b'\\u0663\\u0661\\u0664 ','raw-unicode-escape'), 314),\r\n\r\ntests/test_future/test_builtins.py:288\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_builtins.py:288: DeprecationWarning: invalid escape sequence \\u\r\n (str(b'\\u0663\\u0661\\u0664 ','raw-unicode-escape'), 314),\r\n\r\ntests/test_future/test_htmlparser.py:685\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_htmlparser.py:685: DeprecationWarning: invalid escape sequence \\=\r\n \"\u003ca $\u003e\u003cb $=%\u003e\u003cc \\=/\u003e\",\r\n\r\ntests/test_future/test_http_cookiejar.py:1034\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_http_cookiejar.py:1034: DeprecationWarning: invalid escape sequence \\$\r\n self.assertRegex(h, \"\\$Port([^=]|$)\",\r\n\r\ntests/test_future/test_http_cookiejar.py:1373\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_http_cookiejar.py:1373: DeprecationWarning: invalid escape sequence \\s\r\n '\\s*\\$Path=\"\\/acme\"')\r\n\r\ntests/test_future/test_http_cookiejar.py:1375\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_http_cookiejar.py:1375: DeprecationWarning: invalid escape sequence \\s\r\n '\\s*\\$Path=\"\\/acme\"')\r\n\r\ntests/test_future/test_urllib.py:536\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib.py:536: DeprecationWarning: invalid escape sequence \\^\r\n \"\"\"Tests for urllib.quote() and urllib.quote_plus()\r\n\r\ntests/test_future/test_urllib.py:611\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib.py:611: DeprecationWarning: invalid escape sequence \\^\r\n should_quote.append('\u003c\u003e#%\"{}|\\^[]`')\r\n\r\ntests/test_future/test_urllib_toplevel.py:551\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:551: DeprecationWarning: invalid escape sequence \\^\r\n \"\"\"Tests for urllib.quote() and urllib.quote_plus()\r\n\r\ntests/test_future/test_urllib_toplevel.py:626\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:626: DeprecationWarning: invalid escape sequence \\^\r\n should_quote.append('\u003c\u003e#%\"{}|\\^[]`')\r\n\r\ntests/test_future/test_standard_library.py::TestStandardLibraryReorganization::test_reload\r\n /usr/lib64/python3.8/importlib/__init__.py:169: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\r\n _bootstrap._exec(spec, module)\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1206: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user', 'ab'),urllib_parse.splitpasswd('user:ab'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1207: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user', 'a\\nb'),urllib_parse.splitpasswd('user:a\\nb'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1208: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user', 'a\\tb'),urllib_parse.splitpasswd('user:a\\tb'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1209: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user', 'a\\rb'),urllib_parse.splitpasswd('user:a\\rb'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1210: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user', 'a\\fb'),urllib_parse.splitpasswd('user:a\\fb'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1211: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user', 'a\\vb'),urllib_parse.splitpasswd('user:a\\vb'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1212: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user', 'a:b'),urllib_parse.splitpasswd('user:a:b'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1213: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user', 'a b'),urllib_parse.splitpasswd('user:a b'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1214: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user 2', 'ab'),urllib_parse.splitpasswd('user 2:ab'))\r\n\r\ntests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:1215: DeprecationWarning: urllib.parse.splitpasswd() is deprecated as of 3.8, use urllib.parse.urlparse() instead\r\n self.assertEqual(('user+1', 'a+b'),urllib_parse.splitpasswd('user+1:a+b'))\r\n\r\ntests/test_future/test_urllibnet.py::urlopenNetworkTests::test_getcode\r\ntests/test_future/test_urllibnet.py::test_main\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/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\n\r\ntests/test_future/test_utils.py::TestUtils::test_raise_\r\n /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_utils.py:153: DeprecationWarning: Please use assertRaisesRegex instead.\r\n self.assertRaisesRegexp(\r\n\r\ntests/test_past/test_oldstr.py::TestOldStr::test_unescape\r\n /home/tkloczko/rpmbuild/BUILDROOT/python-future-0.18.2-11.fc35.x86_64/usr/lib/python3.8/site-packages/past/types/oldstr.py:37: DeprecationWarning: invalid escape sequence '\\c'\r\n return s.encode().decode('unicode_escape')\r\n\r\n-- Docs: https://docs.pytest.org/en/stable/warnings.html\r\n========================================================================= short test summary info ==========================================================================\r\nSKIPPED [1] tests/test_future/test_builtins.py:499: FIXME: skip on narrow builds?\r\nSKIPPED [1] tests/test_future/test_builtins.py:1412: stdin and stdout must be ttys\r\nSKIPPED [1] tests/test_future/test_builtins.py:1418: stdin and stdout must be ttys\r\nSKIPPED [1] tests/test_future/test_builtins.py:1423: stdin and stdout must be ttys\r\nSKIPPED [1] tests/test_future/test_builtins.py:482: FIXME: skip on narrow builds?\r\nSKIPPED [1] tests/test_future/test_bytes.py:77: test not needed on Py3: all ints are long\r\nSKIPPED [1] tests/test_future/test_bytes.py:555: test requires Python 2\r\nSKIPPED [1] tests/test_future/test_futurize.py:553: not implemented yet\r\nSKIPPED [1] tests/test_future/test_futurize.py:301: --tobytes feature removed for now ...\r\nSKIPPED [1] tests/test_future/test_futurize.py:695: Infinite loop?\r\nSKIPPED [1] tests/test_future/test_futurize.py:653: Infinite loop?\r\nSKIPPED [1] tests/test_future/test_futurize.py:671: Not working yet ...\r\nSKIPPED [1] tests/test_future/test_htmlparser.py:393: not working on Py3.3.4 for some reason ...\r\nSKIPPED [1] tests/test_future/test_htmlparser.py:379: not working on Py3.3.4 for some reason ...\r\nSKIPPED [1] tests/test_future/test_httplib.py:415: disabled for HTTP 0.9 support\r\nSKIPPED [1] tests/test_future/test_int.py:268: The first parameter must be positional with Python \u003e= 3.7\r\nSKIPPED [4] ../../../../../usr/lib/python3.8/site-packages/_pytest/unittest.py:153: old division tests only for Py2\r\nSKIPPED [1] tests/test_future/test_magicsuper.py:54: this test isn't relevant on Py3\r\nSKIPPED [1] tests/test_future/test_magicsuper.py:100: this test isn't relevant for Py3's super()\r\nSKIPPED [1] tests/test_future/test_standard_library.py:257: generic import tests are for Py2 only\r\nSKIPPED [1] tests/test_future/test_standard_library.py:189: not testing for old urllib on Py3\r\nSKIPPED [1] tests/test_future/test_standard_library.py:320: Not testing tkinter import (it may be installed separately from Python)\r\nSKIPPED [1] tests/test_future/test_standard_library.py:329: ssl redirect support on pypi isn't working as expected for now ...\r\nSKIPPED [1] tests/test_future/test_str.py:455: Fails on Python \u003c= 2.7.6 due to string subclass slicing bug\r\nSKIPPED [1] tests/test_future/test_str.py:466: Fails on Python \u003c= 2.7.6 due to string subclass slicing bug\r\nSKIPPED [1] tests/test_future/test_urllib.py:1169: test specific to the urllib.url2path function.\r\nSKIPPED [1] tests/test_future/test_urllib2.py:1243: only relevant for OSX\r\nSKIPPED [1] tests/test_future/test_urllib_toplevel.py:273: skipping test that uses https\r\nSKIPPED [1] tests/test_future/test_urllib_toplevel.py:225: skipping test that uses https\r\nSKIPPED [1] tests/test_future/test_urllib_toplevel.py:236: skipping test that uses https\r\nSKIPPED [1] tests/test_future/test_urllib_toplevel.py:1182: test specific to the urllib.url2path function.\r\nSKIPPED [1] tests/test_future/test_urllibnet.py:112: test not applicable on Python 3.5 and higher\r\nSKIPPED [1] tests/test_past/test_olddict.py:525: Comparing dicts for order has not been forward-ported\r\nXFAIL tests/test_future/test_bytes.py::TestBytes::test_hash_with_native_types\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_file\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_izip\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_no_unneeded_list_calls\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_problematic_string\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeRenamedStdlib::test_Py2_StringIO_module\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_absolute_import_changes\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_issue_12\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_next_2\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_print_already_function_complex\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_string_exceptions\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestConservativeFuturize::test_basestring\r\n reason:\r\nXFAIL tests/test_future/test_futurize.py::TestConservativeFuturize::test_open\r\n reason:\r\nXFAIL tests/test_future/test_int.py::IntTestCases::test_numpy_cast_as_long_and_newint\r\n reason:\r\nXFAIL tests/test_future/test_pasteurize.py::TestPasteurize::test_exception_indentation\r\n reason:\r\nXFAIL tests/test_future/test_pasteurize.py::TestPasteurize::test_urllib_request\r\n reason:\r\nXFAIL tests/test_future/test_pasteurize.py::TestFuturizeAnnotations::test_return_annotations_alone\r\n reason:\r\nXFAIL tests/test_future/test_pasteurize.py::TestFuturizeAnnotations::test_single_param_annotations\r\n reason:\r\nXFAIL tests/test_future/test_str.py::TestStr::test_u_literal_creates_newstr_object\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_apply\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_bytearray_translate\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_callable\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_chr\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_cmp\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_coerce\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_compile\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_eval\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_filter\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_filter_subclasses\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_format\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_general_eval\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_getattr\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_hasattr\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_input_and_raw_input\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_intern\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_iter\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_len\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_min\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_next\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_oct\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_ord\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_pow\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_range\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_round\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::BuiltinTest::test_unichr\r\n reason:\r\nXFAIL tests/test_past/test_builtins.py::TestSorted::test_basic\r\n reason:\r\nXFAIL tests/test_past/test_translation.py::TestTranslate::test_import_builtin_types\r\n reason:\r\nFAILED tests/test_future/test_builtins.py::BuiltinTest::test_pow - AssertionError: (\u003cclass 'TypeError'\u003e, \u003cclass 'ValueError'\u003e) not raised by pow\r\nFAILED tests/test_future/test_urllib2.py::HandlerTests::test_ftp - AssertionError: None != 'image/gif'\r\nFAILED tests/test_future/test_urllib2.py::test_main - future.backports.test.support.TestFailed: Traceback (most recent call last):\r\n=================================================== 3 failed, 1046 passed, 36 skipped, 47 xfailed, 25 warnings in 40.99s ===================================================\r\npytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(\u003cprocess_name\u003e).terminate()'.\r\n```\r\n","author":{"url":"https://github.com/kloczek","@type":"Person","name":"kloczek"},"datePublished":"2021-09-06T22:06:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/593/python-future/issues/593"}
| 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:ebaa3132-0dc6-7625-a54c-005ce6b4b401 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8374:28D69A:6A4AF4:8C889C:6A5B9824 |
| html-safe-nonce | bd029bdcea7df562aa13ab247225b660ecf6f170bee9d20f7fa8c29bb3892db5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mzc0OjI4RDY5QTo2QTRBRjQ6OEM4ODlDOjZBNUI5ODI0IiwidmlzaXRvcl9pZCI6IjI4NDQ5MTUyODcwMTA4MDk4OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1e5f5070cb7c2fe54e0f082bbbb0b237e18142038818647ce692cabb620062db |
| hovercard-subject-tag | issue:989455735 |
| 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/593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a9df6df1830c8bf59c0f7d0ebaca7a7c2e5d2a46b6026d23567de37f793614a/PythonCharmers/python-future/issues/593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a9df6df1830c8bf59c0f7d0ebaca7a7c2e5d2a46b6026d23567de37f793614a/PythonCharmers/python-future/issues/593 |
| og:image:alt | Actually I've used everything up to 3f40bd7 + #544 I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-roo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kloczek |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width