Skip to content

0.18.2 + master: pytest fails and warnings #593

Open
@kloczek

Description

@kloczek

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 install --root </install/prefix>"
  • "pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Looks like there some issue

+ 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
+ /usr/bin/pytest -ra -p no:randomly
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
benchmark: 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)
rootdir: /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2, configfile: pytest.ini
plugins: 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
collected 1132 items

tests/test_future/test_backports.py ....................................                                                                                             [  3%]
tests/test_future/test_buffer.py ...................                                                                                                                 [  4%]
tests/test_future/test_builtins.py ....................s....................sss..............sF............                                                          [ 11%]
tests/test_future/test_bytes.py ....................s..................x........s...............                                                                     [ 16%]
tests/test_future/test_chainmap.py ............                                                                                                                      [ 17%]
tests/test_future/test_common_iterators.py ....                                                                                                                      [ 18%]
tests/test_future/test_decorators.py ..                                                                                                                              [ 18%]
tests/test_future/test_dict.py ..............                                                                                                                        [ 19%]
tests/test_future/test_email_generation.py .                                                                                                                         [ 19%]
tests/test_future/test_email_multipart.py ..                                                                                                                         [ 19%]
tests/test_future/test_explicit_imports.py ..                                                                                                                        [ 20%]
tests/test_future/test_futurize.py ........s...x...x..x..x.......s.xsss.x....x...x.....x.....x.xx.                                                                   [ 25%]
tests/test_future/test_html.py .                                                                                                                                     [ 25%]
tests/test_future/test_htmlparser.py ..........................................ss..........................                                                          [ 31%]
tests/test_future/test_http_cookiejar.py ...........................................................                                                                 [ 37%]
tests/test_future/test_httplib.py ...............s..............                                                                                                     [ 39%]
tests/test_future/test_import_star.py ......                                                                                                                         [ 40%]
tests/test_future/test_imports_httplib.py .                                                                                                                          [ 40%]
tests/test_future/test_imports_urllib.py ..                                                                                                                          [ 40%]
tests/test_future/test_int.py ...................x.........s                                                                                                         [ 43%]
tests/test_future/test_int_old_division.py ssss                                                                                                                      [ 43%]
tests/test_future/test_isinstance.py ................                                                                                                                [ 45%]
tests/test_future/test_libfuturize_fixers.py ...................................                                                                                     [ 48%]
tests/test_future/test_list.py ....................                                                                                                                  [ 49%]
tests/test_future/test_magicsuper.py ..s.s...                                                                                                                        [ 50%]
tests/test_future/test_object.py ..............                                                                                                                      [ 51%]
tests/test_future/test_pasteurize.py ..x...x...xx                                                                                                                    [ 52%]
tests/test_future/test_range.py ........................                                                                                                             [ 55%]
tests/test_future/test_requests.py ..                                                                                                                                [ 55%]
tests/test_future/test_standard_library.py ..........s.....s.............s......s...                                                                                 [ 58%]
tests/test_future/test_str.py .................s............................s..x.                                                                                    [ 63%]
tests/test_future/test_super.py ...............                                                                                                                      [ 64%]
tests/test_future/test_surrogateescape.py ..........                                                                                                                 [ 65%]
tests/test_future/test_urllib.py ...............................................................s................                                                    [ 72%]
tests/test_future/test_urllib2.py .........................F...s........................F                                                                            [ 77%]
tests/test_future/test_urllib_response.py .                                                                                                                          [ 77%]
tests/test_future/test_urllib_toplevel.py .................s.....s..s....................................s................                                           [ 84%]
tests/test_future/test_urllibnet.py ...s..........                                                                                                                   [ 85%]
tests/test_future/test_urlparse.py .................................                                                                                                 [ 88%]
tests/test_future/test_utils.py ...................                                                                                                                  [ 90%]
tests/test_past/test_basestring.py ..                                                                                                                                [ 90%]
tests/test_past/test_builtins.py ...x..xxxxxx...x.xxxxxx....xx..xx..x.xx.xxx...x....x...x.                                                                           [ 95%]
tests/test_past/test_misc.py .                                                                                                                                       [ 95%]
tests/test_past/test_noniterators.py .                                                                                                                               [ 95%]
tests/test_past/test_olddict.py .....................s............                                                                                                   [ 98%]
tests/test_past/test_oldstr.py ....                                                                                                                                  [ 99%]
tests/test_past/test_translation.py ....x....                                                                                                                        [100%]

================================================================================= FAILURES =================================================================================
___________________________________________________________________________ BuiltinTest.test_pow ___________________________________________________________________________

self = <test_future.test_builtins.BuiltinTest testMethod=test_pow>

    def test_pow(self):
        self.assertEqual(pow(0,0), 1)
        self.assertEqual(pow(0,1), 0)
        self.assertEqual(pow(1,0), 1)
        self.assertEqual(pow(1,1), 1)

        self.assertEqual(pow(2,0), 1)
        self.assertEqual(pow(2,10), 1024)
        self.assertEqual(pow(2,20), 1024*1024)
        self.assertEqual(pow(2,30), 1024*1024*1024)

        self.assertEqual(pow(-2,0), 1)
        self.assertEqual(pow(-2,1), -2)
        self.assertEqual(pow(-2,2), 4)
        self.assertEqual(pow(-2,3), -8)

        self.assertAlmostEqual(pow(0.,0), 1.)
        self.assertAlmostEqual(pow(0.,1), 0.)
        self.assertAlmostEqual(pow(1.,0), 1.)
        self.assertAlmostEqual(pow(1.,1), 1.)

        self.assertAlmostEqual(pow(2.,0), 1.)
        self.assertAlmostEqual(pow(2.,10), 1024.)
        self.assertAlmostEqual(pow(2.,20), 1024.*1024.)
        self.assertAlmostEqual(pow(2.,30), 1024.*1024.*1024.)

        self.assertAlmostEqual(pow(-2.,0), 1.)
        self.assertAlmostEqual(pow(-2.,1), -2.)
        self.assertAlmostEqual(pow(-2.,2), 4.)
        self.assertAlmostEqual(pow(-2.,3), -8.)

        for x in 2, int(2), 2.0:
            for y in 10, int(10), 10.0:
                for z in 1000, int(1000), 1000.0:
                    if isinstance(x, float) or \
                       isinstance(y, float) or \
                       isinstance(z, float):
                        self.assertRaises(TypeError, pow, x, y, z)
                    else:
                        self.assertAlmostEqual(pow(x, y, z), 24.0)

        self.assertAlmostEqual(pow(-1, 0.5), 1j)
        self.assertAlmostEqual(pow(-1, 1/3), 0.5 + 0.8660254037844386j)

        # Raises TypeError in Python < v3.5, ValueError in v3.5:
>       self.assertRaises((TypeError, ValueError), pow, -1, -2, 3)
E       AssertionError: (<class 'TypeError'>, <class 'ValueError'>) not raised by pow

tests/test_future/test_builtins.py:1307: AssertionError
__________________________________________________________________________ HandlerTests.test_ftp ___________________________________________________________________________

self = <test_future.test_urllib2.HandlerTests testMethod=test_ftp>

    def test_ftp(self):
        class MockFTPWrapper(object):
            def __init__(self, data): self.data = data
            def retrfile(self, filename, filetype):
                self.filename, self.filetype = filename, filetype
                return io.StringIO(self.data), len(self.data)
            def close(self): pass

        class NullFTPHandler(urllib_request.FTPHandler):
            def __init__(self, data): self.data = data
            def connect_ftp(self, user, passwd, host, port, dirs,
                            timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
                self.user, self.passwd = user, passwd
                self.host, self.port = host, port
                self.dirs = dirs
                self.ftpwrapper = MockFTPWrapper(self.data)
                return self.ftpwrapper

        import ftplib
        data = "rheum rhaponicum"
        h = NullFTPHandler(data)
        h.parent = MockOpener()

        # MIME guessing works in Python 3.8!
        guessed_mime = None
        if sys.hexversion >= 0x03080000:
            guessed_mime = "image/gif"
        for url, host, port, user, passwd, type_, dirs, filename, mimetype in [
            ("ftp://localhost/foo/bar/baz.html",
             "localhost", ftplib.FTP_PORT, "", "", "I",
             ["foo", "bar"], "baz.html", "text/html"),
            ("ftp://parrot@localhost/foo/bar/baz.html",
             "localhost", ftplib.FTP_PORT, "parrot", "", "I",
             ["foo", "bar"], "baz.html", "text/html"),
            ("ftp://%25parrot@localhost/foo/bar/baz.html",
             "localhost", ftplib.FTP_PORT, "%parrot", "", "I",
             ["foo", "bar"], "baz.html", "text/html"),
            ("ftp://%2542parrot@localhost/foo/bar/baz.html",
             "localhost", ftplib.FTP_PORT, "%42parrot", "", "I",
             ["foo", "bar"], "baz.html", "text/html"),
            ("ftp://localhost:80/foo/bar/",
             "localhost", 80, "", "", "D",
             ["foo", "bar"], "", None),
            ("ftp://localhost/baz.gif;type=a",
             "localhost", ftplib.FTP_PORT, "", "", "A",
             [], "baz.gif", guessed_mime),
            ]:
            req = Request(url)
            req.timeout = None
            r = h.ftp_open(req)
            # ftp authentication not yet implemented by FTPHandler
            self.assertEqual(h.user, user)
            self.assertEqual(h.passwd, passwd)
            self.assertEqual(h.host, socket.gethostbyname(host))
            self.assertEqual(h.port, port)
            self.assertEqual(h.dirs, dirs)
            self.assertEqual(h.ftpwrapper.filename, filename)
            self.assertEqual(h.ftpwrapper.filetype, type_)
            headers = r.info()
>           self.assertEqual(headers.get("Content-type"), mimetype)
E           AssertionError: None != 'image/gif'

tests/test_future/test_urllib2.py:730: AssertionError
________________________________________________________________________________ test_main _________________________________________________________________________________

verbose = None

    def test_main(verbose=None):
        # support.run_doctest(test_urllib2, verbose)
        # support.run_doctest(urllib_request, verbose)
        tests = (TrivialTests,
                 OpenerDirectorTests,
                 HandlerTests,
                 MiscTests,
                 RequestTests,
                 RequestHdrsTests)
>       support.run_unittest(*tests)

tests/test_future/test_urllib2.py:1566:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../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
    _run_suite(suite)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

suite = <unittest.suite.TestSuite tests=[None, None, None, None, None, None]>

    def _run_suite(suite):
        """Run tests from a unittest.TestSuite-derived class."""
        if verbose:
            runner = unittest.TextTestRunner(sys.stdout, verbosity=2,
                                             failfast=failfast)
        else:
            runner = BasicTestRunner()

        result = runner.run(suite)
        if not result.wasSuccessful():
            if len(result.errors) == 1 and not result.failures:
                err = result.errors[0][1]
            elif len(result.failures) == 1 and not result.errors:
                err = result.failures[0][1]
            else:
                err = "multiple errors occurred"
                if not verbose: err += "; run in verbose mode for details"
>           raise TestFailed(err)
E           future.backports.test.support.TestFailed: Traceback (most recent call last):
E             File "/home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib2.py", line 730, in test_ftp
E               self.assertEqual(headers.get("Content-type"), mimetype)
E           AssertionError: None != 'image/gif'

../../BUILDROOT/python-future-0.18.2-11.fc35.x86_64/usr/lib/python3.8/site-packages/future/backports/test/support.py:1640: TestFailed
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
test_URLError_reasonstr (test_future.test_urllib2.TrivialTests) ... ok
test___all__ (test_future.test_urllib2.TrivialTests) ... ok
test_parse_http_list (test_future.test_urllib2.TrivialTests) ... ok
test_trivial (test_future.test_urllib2.TrivialTests) ... ok
test_add_non_handler (test_future.test_urllib2.OpenerDirectorTests) ... ok
test_badly_named_methods (test_future.test_urllib2.OpenerDirectorTests) ... ok
test_handled (test_future.test_urllib2.OpenerDirectorTests) ... ok
test_handler_order (test_future.test_urllib2.OpenerDirectorTests) ... ok
test_http_error (test_future.test_urllib2.OpenerDirectorTests) ... ok
test_method_deprecations (test_future.test_urllib2.OpenerDirectorTests) ... ok
test_processors (test_future.test_urllib2.OpenerDirectorTests) ... ok
test_raise (test_future.test_urllib2.OpenerDirectorTests) ... ok
test_basic_and_digest_auth_handlers (test_future.test_urllib2.HandlerTests) ... ok
test_basic_auth (test_future.test_urllib2.HandlerTests) ... ok
test_basic_auth_with_single_quoted_realm (test_future.test_urllib2.HandlerTests) ... ok
test_basic_auth_with_unquoted_realm (test_future.test_urllib2.HandlerTests) ... ok
test_cookie_redirect (test_future.test_urllib2.HandlerTests) ... ok
test_cookies (test_future.test_urllib2.HandlerTests) ... ok
test_errors (test_future.test_urllib2.HandlerTests) ... ok
test_file (test_future.test_urllib2.HandlerTests) ... ok
test_fixpath_in_weirdurls (test_future.test_urllib2.HandlerTests) ... ok
test_ftp (test_future.test_urllib2.HandlerTests) ... FAIL
test_http (test_future.test_urllib2.HandlerTests) ... ok
test_http_doubleslash (test_future.test_urllib2.HandlerTests) ... ok
test_invalid_redirect (test_future.test_urllib2.HandlerTests) ... ok
test_osx_proxy_bypass (test_future.test_urllib2.HandlerTests) ... skipped 'only relevant for OSX'
test_proxy (test_future.test_urllib2.HandlerTests) ... ok
test_proxy_basic_auth (test_future.test_urllib2.HandlerTests) ... ok
test_proxy_https (test_future.test_urllib2.HandlerTests) ... ok
test_proxy_https_proxy_authorization (test_future.test_urllib2.HandlerTests) ... ok
test_proxy_no_proxy (test_future.test_urllib2.HandlerTests) ... ok
test_proxy_no_proxy_all (test_future.test_urllib2.HandlerTests) ... ok
test_redirect (test_future.test_urllib2.HandlerTests) ... ok
test_redirect_fragment (test_future.test_urllib2.HandlerTests) ... ok
test_relative_redirect (test_future.test_urllib2.HandlerTests) ... ok
test_unsupported_auth_basic_handler (test_future.test_urllib2.HandlerTests) ... ok
test_unsupported_auth_digest_handler (test_future.test_urllib2.HandlerTests) ... ok
test_HTTPError_interface (test_future.test_urllib2.MiscTests)
Issue 13211 reveals that HTTPError didn't implement the URLError ... ok
test_build_opener (test_future.test_urllib2.MiscTests) ... ok
test_HTTPError_interface_call (test_future.test_urllib2.RequestTests)
Issue 15701 - HTTPError interface has info method available from URLError ... ok
test_data (test_future.test_urllib2.RequestTests) ... ok
test_get_full_url (test_future.test_urllib2.RequestTests) ... ok
test_get_host (test_future.test_urllib2.RequestTests) ... ok
test_get_host_unquote (test_future.test_urllib2.RequestTests) ... ok
test_get_type (test_future.test_urllib2.RequestTests) ... ok
test_method (test_future.test_urllib2.RequestTests) ... ok
test_proxy (test_future.test_urllib2.RequestTests) ... ok
test_selector (test_future.test_urllib2.RequestTests) ... ok
test_url_fragment (test_future.test_urllib2.RequestTests) ... ok
test_wrapped_url (test_future.test_urllib2.RequestTests) ... ok
test_password_manager (test_future.test_urllib2.RequestHdrsTests) ... ok
test_password_manager_default_port (test_future.test_urllib2.RequestHdrsTests)
The point to note here is that we can't guess the default port if ... ok
test_request_headers_dict (test_future.test_urllib2.RequestHdrsTests)
The Request.headers dictionary is not a documented interface.  It ... ok
test_request_headers_methods (test_future.test_urllib2.RequestHdrsTests)
Note the case normalization of header names here, to ... ok

======================================================================
FAIL: test_ftp (test_future.test_urllib2.HandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib2.py", line 730, in test_ftp
    self.assertEqual(headers.get("Content-type"), mimetype)
AssertionError: None != 'image/gif'

----------------------------------------------------------------------
Ran 54 tests in 0.096s

FAILED (failures=1, skipped=1)
============================================================================= warnings summary =============================================================================
tests/test_future/test_builtins.py:266
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_builtins.py:266: DeprecationWarning: invalid escape sequence \u
    (str(b'\u0663\u0661\u0664 ','raw-unicode-escape'), 314),

tests/test_future/test_builtins.py:288
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_builtins.py:288: DeprecationWarning: invalid escape sequence \u
    (str(b'\u0663\u0661\u0664 ','raw-unicode-escape'), 314),

tests/test_future/test_htmlparser.py:685
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_htmlparser.py:685: DeprecationWarning: invalid escape sequence \=
    "<a $><b $=%><c \=/>",

tests/test_future/test_http_cookiejar.py:1034
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_http_cookiejar.py:1034: DeprecationWarning: invalid escape sequence \$
    self.assertRegex(h, "\$Port([^=]|$)",

tests/test_future/test_http_cookiejar.py:1373
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_http_cookiejar.py:1373: DeprecationWarning: invalid escape sequence \s
    '\s*\$Path="\/acme"')

tests/test_future/test_http_cookiejar.py:1375
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_http_cookiejar.py:1375: DeprecationWarning: invalid escape sequence \s
    '\s*\$Path="\/acme"')

tests/test_future/test_urllib.py:536
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib.py:536: DeprecationWarning: invalid escape sequence \^
    """Tests for urllib.quote() and urllib.quote_plus()

tests/test_future/test_urllib.py:611
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib.py:611: DeprecationWarning: invalid escape sequence \^
    should_quote.append('<>#%"{}|\^[]`')

tests/test_future/test_urllib_toplevel.py:551
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:551: DeprecationWarning: invalid escape sequence \^
    """Tests for urllib.quote() and urllib.quote_plus()

tests/test_future/test_urllib_toplevel.py:626
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_urllib_toplevel.py:626: DeprecationWarning: invalid escape sequence \^
    should_quote.append('<>#%"{}|\^[]`')

tests/test_future/test_standard_library.py::TestStandardLibraryReorganization::test_reload
  /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
    _bootstrap._exec(spec, module)

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user', 'ab'),urllib_parse.splitpasswd('user:ab'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user', 'a\nb'),urllib_parse.splitpasswd('user:a\nb'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user', 'a\tb'),urllib_parse.splitpasswd('user:a\tb'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user', 'a\rb'),urllib_parse.splitpasswd('user:a\rb'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user', 'a\fb'),urllib_parse.splitpasswd('user:a\fb'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user', 'a\vb'),urllib_parse.splitpasswd('user:a\vb'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user', 'a:b'),urllib_parse.splitpasswd('user:a:b'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user', 'a b'),urllib_parse.splitpasswd('user:a b'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user 2', 'ab'),urllib_parse.splitpasswd('user 2:ab'))

tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd
  /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
    self.assertEqual(('user+1', 'a+b'),urllib_parse.splitpasswd('user+1:a+b'))

tests/test_future/test_urllibnet.py::urlopenNetworkTests::test_getcode
tests/test_future/test_urllibnet.py::test_main
  /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
    open_url = urllib_request.FancyURLopener().open(URL)

tests/test_future/test_utils.py::TestUtils::test_raise_
  /home/tkloczko/rpmbuild/BUILD/python-future-0.18.2/tests/test_future/test_utils.py:153: DeprecationWarning: Please use assertRaisesRegex instead.
    self.assertRaisesRegexp(

tests/test_past/test_oldstr.py::TestOldStr::test_unescape
  /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'
    return s.encode().decode('unicode_escape')

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_future/test_builtins.py:499: FIXME: skip on narrow builds?
SKIPPED [1] tests/test_future/test_builtins.py:1412: stdin and stdout must be ttys
SKIPPED [1] tests/test_future/test_builtins.py:1418: stdin and stdout must be ttys
SKIPPED [1] tests/test_future/test_builtins.py:1423: stdin and stdout must be ttys
SKIPPED [1] tests/test_future/test_builtins.py:482: FIXME: skip on narrow builds?
SKIPPED [1] tests/test_future/test_bytes.py:77: test not needed on Py3: all ints are long
SKIPPED [1] tests/test_future/test_bytes.py:555: test requires Python 2
SKIPPED [1] tests/test_future/test_futurize.py:553: not implemented yet
SKIPPED [1] tests/test_future/test_futurize.py:301: --tobytes feature removed for now ...
SKIPPED [1] tests/test_future/test_futurize.py:695: Infinite loop?
SKIPPED [1] tests/test_future/test_futurize.py:653: Infinite loop?
SKIPPED [1] tests/test_future/test_futurize.py:671: Not working yet ...
SKIPPED [1] tests/test_future/test_htmlparser.py:393: not working on Py3.3.4 for some reason ...
SKIPPED [1] tests/test_future/test_htmlparser.py:379: not working on Py3.3.4 for some reason ...
SKIPPED [1] tests/test_future/test_httplib.py:415: disabled for HTTP 0.9 support
SKIPPED [1] tests/test_future/test_int.py:268: The first parameter must be positional with Python >= 3.7
SKIPPED [4] ../../../../../usr/lib/python3.8/site-packages/_pytest/unittest.py:153: old division tests only for Py2
SKIPPED [1] tests/test_future/test_magicsuper.py:54: this test isn't relevant on Py3
SKIPPED [1] tests/test_future/test_magicsuper.py:100: this test isn't relevant for Py3's super()
SKIPPED [1] tests/test_future/test_standard_library.py:257: generic import tests are for Py2 only
SKIPPED [1] tests/test_future/test_standard_library.py:189: not testing for old urllib on Py3
SKIPPED [1] tests/test_future/test_standard_library.py:320: Not testing tkinter import (it may be installed separately from Python)
SKIPPED [1] tests/test_future/test_standard_library.py:329: ssl redirect support on pypi isn't working as expected for now ...
SKIPPED [1] tests/test_future/test_str.py:455: Fails on Python <= 2.7.6 due to string subclass slicing bug
SKIPPED [1] tests/test_future/test_str.py:466: Fails on Python <= 2.7.6 due to string subclass slicing bug
SKIPPED [1] tests/test_future/test_urllib.py:1169: test specific to the urllib.url2path function.
SKIPPED [1] tests/test_future/test_urllib2.py:1243: only relevant for OSX
SKIPPED [1] tests/test_future/test_urllib_toplevel.py:273: skipping test that uses https
SKIPPED [1] tests/test_future/test_urllib_toplevel.py:225: skipping test that uses https
SKIPPED [1] tests/test_future/test_urllib_toplevel.py:236: skipping test that uses https
SKIPPED [1] tests/test_future/test_urllib_toplevel.py:1182: test specific to the urllib.url2path function.
SKIPPED [1] tests/test_future/test_urllibnet.py:112: test not applicable on Python 3.5 and higher
SKIPPED [1] tests/test_past/test_olddict.py:525: Comparing dicts for order has not been forward-ported
XFAIL tests/test_future/test_bytes.py::TestBytes::test_hash_with_native_types
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_file
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_izip
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_no_unneeded_list_calls
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_problematic_string
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeRenamedStdlib::test_Py2_StringIO_module
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_absolute_import_changes
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_issue_12
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_next_2
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_print_already_function_complex
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_string_exceptions
  reason:
XFAIL tests/test_future/test_futurize.py::TestConservativeFuturize::test_basestring
  reason:
XFAIL tests/test_future/test_futurize.py::TestConservativeFuturize::test_open
  reason:
XFAIL tests/test_future/test_int.py::IntTestCases::test_numpy_cast_as_long_and_newint
  reason:
XFAIL tests/test_future/test_pasteurize.py::TestPasteurize::test_exception_indentation
  reason:
XFAIL tests/test_future/test_pasteurize.py::TestPasteurize::test_urllib_request
  reason:
XFAIL tests/test_future/test_pasteurize.py::TestFuturizeAnnotations::test_return_annotations_alone
  reason:
XFAIL tests/test_future/test_pasteurize.py::TestFuturizeAnnotations::test_single_param_annotations
  reason:
XFAIL tests/test_future/test_str.py::TestStr::test_u_literal_creates_newstr_object
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_apply
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_bytearray_translate
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_callable
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_chr
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_cmp
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_coerce
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_compile
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_eval
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_filter
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_filter_subclasses
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_format
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_general_eval
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_getattr
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_hasattr
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_input_and_raw_input
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_intern
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_iter
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_len
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_min
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_next
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_oct
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_ord
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_pow
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_range
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_round
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_unichr
  reason:
XFAIL tests/test_past/test_builtins.py::TestSorted::test_basic
  reason:
XFAIL tests/test_past/test_translation.py::TestTranslate::test_import_builtin_types
  reason:
FAILED tests/test_future/test_builtins.py::BuiltinTest::test_pow - AssertionError: (<class 'TypeError'>, <class 'ValueError'>) not raised by pow
FAILED tests/test_future/test_urllib2.py::HandlerTests::test_ftp - AssertionError: None != 'image/gif'
FAILED tests/test_future/test_urllib2.py::test_main - future.backports.test.support.TestFailed: Traceback (most recent call last):
=================================================== 3 failed, 1046 passed, 36 skipped, 47 xfailed, 25 warnings in 40.99s ===================================================
pytest-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(<process_name>).terminate()'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions