PythonCharmers / python-future

Easy, clean, reliable Python 2/3 compatibility
http://python-future.org
MIT License
1.17k stars 291 forks source link

0.18.2 + master: pytest fails and warnings #593

Open kloczek opened 2 years ago

kloczek commented 2 years ago

Actually I've used everything up to 3f40bd75 + https://github.com/PythonCharmers/python-future/pull/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.

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()'.
kloczek commented 2 years ago

And even after deselecting those failing units new are popping up. That is because I'm usimg pytest-randomly which exposes some units dependencies.

================================================================================= FAILURES =================================================================================
________________________________________________________________________ BuiltinTest.test_execfile _________________________________________________________________________

self = <test_past.test_builtins.BuiltinTest testMethod=test_execfile>

    def test_execfile(self):
        global numruns
        if numruns:
            return
        numruns += 1

        globals = {'a': 1, 'b': 2}
        locals = {'b': 200, 'c': 300}

        self.assertEqual(self.__class__.z, 2)
        globals['z'] = 0
>       execfile(TESTFN, globals)

tests/test_past/test_builtins.py:517:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

filename = '/tmp/tmpuk6pk_d2/@test_2914153_tmp', myglobals = {'a': 1, 'b': 2, 'z': 0}, mylocals = {'a': 1, 'b': 2, 'z': 0}

    def execfile(filename, myglobals=None, mylocals=None):
        """
        Read and execute a Python script from a file in the given namespaces.
        The globals and locals are dictionaries, defaulting to the current
        globals and locals. If only globals is given, locals defaults to it.
        """
        if myglobals is None:
            # There seems to be no alternative to frame hacking here.
            caller_frame = inspect.stack()[1]
            myglobals = caller_frame[0].f_globals
            mylocals = caller_frame[0].f_locals
        elif mylocals is None:
            # Only if myglobals is given do we set mylocals to it.
            mylocals = myglobals
        if not isinstance(myglobals, Mapping):
            raise TypeError('globals must be a mapping')
        if not isinstance(mylocals, Mapping):
            raise TypeError('locals must be a mapping')
>       with open(filename, "rb") as fin:
E       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpuk6pk_d2/@test_2914153_tmp'

../../BUILDROOT/python-future-0.18.2-11.fc35.x86_64/usr/lib/python3.8/site-packages/past/builtins/misc.py:151: FileNotFoundError
============================================================================= 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_urllibnet.py::test_main
tests/test_future/test_urllibnet.py::urlopenNetworkTests::test_getcode
  /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_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_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')

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)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_future/test_bytes.py:555: test requires Python 2
SKIPPED [1] tests/test_future/test_bytes.py:77: test not needed on Py3: all ints are long
SKIPPED [1] tests/test_future/test_magicsuper.py:100: this test isn't relevant for Py3's super()
SKIPPED [1] tests/test_future/test_magicsuper.py:54: this test isn't relevant on Py3
SKIPPED [1] tests/test_future/test_httplib.py:415: disabled for HTTP 0.9 support
SKIPPED [1] tests/test_future/test_urllibnet.py:112: test not applicable on Python 3.5 and higher
SKIPPED [4] ../../../../../usr/lib/python3.8/site-packages/_pytest/unittest.py:153: old division tests only for Py2
SKIPPED [1] tests/test_future/test_urllib.py:1169: test specific to the urllib.url2path function.
SKIPPED [1] tests/test_future/test_futurize.py:671: Not working yet ...
SKIPPED [1] tests/test_future/test_futurize.py:653: Infinite loop?
SKIPPED [1] tests/test_future/test_futurize.py:695: Infinite loop?
SKIPPED [1] tests/test_future/test_futurize.py:301: --tobytes feature removed for now ...
SKIPPED [1] tests/test_future/test_futurize.py:553: not implemented yet
SKIPPED [1] tests/test_past/test_olddict.py:525: Comparing dicts for order has not been forward-ported
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_str.py:455: Fails on Python <= 2.7.6 due to string subclass slicing bug
SKIPPED [1] tests/test_future/test_urllib_toplevel.py:1182: test specific to the urllib.url2path function.
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_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_builtins.py:1418: stdin and stdout must be ttys
SKIPPED [1] tests/test_future/test_builtins.py:1412: 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:499: FIXME: skip on narrow builds?
SKIPPED [1] tests/test_future/test_builtins.py:482: FIXME: skip on narrow builds?
SKIPPED [1] tests/test_future/test_int.py:268: The first parameter must be positional with Python >= 3.7
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_standard_library.py:257: generic import tests are for Py2 only
SKIPPED [1] tests/test_future/test_urllib2.py:1243: only relevant for OSX
XFAIL tests/test_future/test_bytes.py::TestBytes::test_hash_with_native_types
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeRenamedStdlib::test_Py2_StringIO_module
  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_file
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeSimple::test_problematic_string
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_issue_12
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_print_already_function_complex
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_absolute_import_changes
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_string_exceptions
  reason:
XFAIL tests/test_future/test_futurize.py::TestFuturizeStage1::test_next_2
  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_str.py::TestStr::test_u_literal_creates_newstr_object
  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_past/test_builtins.py::TestSorted::test_basic
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_min
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_ord
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_chr
  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_bytearray_translate
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_callable
  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_len
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_getattr
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_unichr
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_round
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_general_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_cmp
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_apply
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_hasattr
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_compile
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_range
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_coerce
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_format
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_eval
  reason:
XFAIL tests/test_past/test_builtins.py::BuiltinTest::test_pow
  reason:
XFAIL tests/test_past/test_translation.py::TestTranslate::test_import_builtin_types
  reason:
XFAIL tests/test_future/test_int.py::IntTestCases::test_numpy_cast_as_long_and_newint
  reason:
FAILED tests/test_past/test_builtins.py::BuiltinTest::test_execfile - FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpuk6pk_d2/@test_2914153_tmp'
============================================ 1 failed, 1045 passed, 36 skipped, 3 deselected, 47 xfailed, 25 warnings in 42.40s ============================================
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()'.

This kind of issues can be diagnosed using https://github.com/mrbean-bremen/pytest-find-dependencies/

kloczek commented 2 years ago

Just tested running 3 times that after disanble pytest-randomly pluging there is no no new fails

+ /usr/bin/pytest -ra -p no:randomly --deselect tests/test_future/test_builtins.py::BuiltinTest::test_pow --deselect tests/test_future/test_urllib2.py::HandlerTests::test_ftp --deselect tests/test_future/test_urllib2.py::test_main
=========================================================================== 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 / 3 deselected / 1129 selected

tests/test_future/test_backports.py ....................................                                                                                             [  3%]
tests/test_future/test_buffer.py ...................                                                                                                                 [  4%]
tests/test_future/test_builtins.py ....................s....................sss..............s............                                                           [ 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 ............................s........................                                                                              [ 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%]

============================================================================= 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:
================================================= 1046 passed, 36 skipped, 3 deselected, 47 xfailed, 25 warnings in 41.30s =================================================
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()'.
cclauss commented 4 months ago

Is this now fixed?

kloczek commented 4 months ago

Just tested 1.0.0

Here is pytest output ```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-future-1.0.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-future-1.0.0-2.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -m 'not network' -p no:randomly ==================================================================================== test session starts ==================================================================================== platform linux -- Python 3.8.18, pytest-8.0.1, pluggy-1.3.0 rootdir: /home/tkloczko/rpmbuild/BUILD/python-future-1.0.0 configfile: pytest.ini collected 1143 items tests/test_future/test_backports.py .................................... [ 3%] tests/test_future/test_buffer.py ................... [ 4%] tests/test_future/test_builtins.py ....................s....................sss..............s............. [ 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_count.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 ...................s.........s [ 43%] tests/test_future/test_int_old_division.py ssss [ 43%] tests/test_future/test_isinstance.py ................ [ 44%] tests/test_future/test_libfuturize_fixers.py .......................................... [ 48%] tests/test_future/test_list.py .................... [ 50%] tests/test_future/test_magicsuper.py ..s.s... [ 50%] tests/test_future/test_object.py .............. [ 52%] tests/test_future/test_pasteurize.py ..x...x...xx [ 53%] 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... [ 59%] tests/test_future/test_str.py .................s............................s..x. [ 63%] tests/test_future/test_super.py ................ [ 65%] tests/test_future/test_surrogateescape.py .......... [ 65%] tests/test_future/test_urllib.py ...............................................................s................ [ 72%] tests/test_future/test_urllib2.py .............................s......................... [ 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.......... [ 86%] 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%] ========================================================================================= XFAILURES ========================================================================================= ___________________________________________________________________________ TestBytes.test_hash_with_native_types ___________________________________________________________________________ self = , testcase = rawexcinfo = (, TypeError("assertEqual() missing 1 required positional argument: 'second'"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _______________________________________________________________________________ TestFuturizeSimple.test_file ________________________________________________________________________________ self = , testcase = rawexcinfo = (, VerboseCalledProcessError("Error running the command /usr/bin/...f.close()\n\n----", 1, ['/usr/bin/python3', '/tmp/tmpsvn16snx/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _______________________________________________________________________________ TestFuturizeSimple.test_izip ________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('internal usage error: dedent the code before calling order_future_lines()'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ______________________________________________________________________ TestFuturizeSimple.test_no_unneeded_list_calls _______________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError("'for (a, b) in zip(list(range(3)), list(range(3, 6))):\\n pass' != 'for ... - ----- -\n+ for (a, b) in zip(range(3), range(3, 6)):\n pass"), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ________________________________________________________________________ TestFuturizeSimple.test_problematic_string _________________________________________________________________________ self = , testcase = rawexcinfo = (, FuturizeError('Error running the command /usr/bin/python3 futurize.py -w /..., ['/usr/bin/python3', 'futurize.py', '-w', '/tmp/tmpin9gj38d/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ____________________________________________________________________ TestFuturizeRenamedStdlib.test_Py2_StringIO_module _____________________________________________________________________ self = , testcase = rawexcinfo = (, VerboseCalledProcessError("Error running the command /usr/bin/...nputType)\n\n----", 1, ['/usr/bin/python3', '/tmp/tmpdxogmgso/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ______________________________________________________________________ TestFuturizeStage1.test_absolute_import_changes ______________________________________________________________________ self = , testcase = rawexcinfo = (, VerboseCalledProcessError("Error running the command /usr/bin/...el.blah()\n\n----", 1, ['/usr/bin/python3', '/tmp/tmp77dfj2c_/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _____________________________________________________________________________ TestFuturizeStage1.test_issue_12 ______________________________________________________________________________ self = , testcase = rawexcinfo = (, VerboseCalledProcessError("Error running the command /usr/bin/...n pass\n\n----", 1, ['/usr/bin/python3', '/tmp/tmpove4_70n/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ______________________________________________________________________________ TestFuturizeStage1.test_next_2 _______________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('"class Upper:\\n def __init__(self, iterable):\\n [285 chars]LO\')" !=...tr) == \'H\'\n assert next(itr) == \'E\'\n assert list(itr) == list(\'LLO\')'), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________ TestFuturizeStage1.test_print_already_function_complex ___________________________________________________________________ self = , testcase = rawexcinfo = (, FuturizeError("Error running the command /usr/bin/python3 futurize.py --st.../python3', 'futurize.py', '--stage1', '-w', '/tmp/tmpvd61hk6_/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _________________________________________________________________________ TestFuturizeStage1.test_string_exceptions _________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('\'try:\\n raise "old string exception"\\nexcept Exception as e:\\n pa... ++++++++++ +\n except Exception as e:\n pass'), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _________________________________________________________________________ TestConservativeFuturize.test_basestring __________________________________________________________________________ self = , testcase = rawexcinfo = (, FuturizeError("Error running the command /usr/bin/python3 futurize.py --co...n3', 'futurize.py', '--conservative', '-w', '/tmp/tmpif0db26s/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ____________________________________________________________________________ TestConservativeFuturize.test_open _____________________________________________________________________________ self = , testcase = rawexcinfo = (, FuturizeError("Error running the command /usr/bin/python3 futurize.py --co...n3', 'futurize.py', '--conservative', '-w', '/tmp/tmpegpmnfgz/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _________________________________________________________________________ TestPasteurize.test_exception_indentation _________________________________________________________________________ self = , testcase = rawexcinfo = (, VerboseCalledProcessError('Error running the command /usr/bin/...eback(tb)\n\n----', 1, ['/usr/bin/python3', '/tmp/tmpdsqfmr2g/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ____________________________________________________________________________ TestPasteurize.test_urllib_request _____________________________________________________________________________ self = , testcase = rawexcinfo = (, VerboseCalledProcessError("Error running the command /usr/bin/...r.read())\n\n----", 1, ['/usr/bin/python3', '/tmp/tmp1dvfrmhr/mytestscript.py']), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________ TestFuturizeAnnotations.test_return_annotations_alone ___________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('\'def foo(): pass\' != "def foo(): pass\\nfoo.__annotations__ = {\'return\'... foo(): pass\n+ def foo(): pass\nfoo.__annotations__ = {\'return\': \'bar\'}\n'), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________ TestFuturizeAnnotations.test_single_param_annotations ___________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('\'def foo(bar): pass\' != "def foo(bar): pass\\nfoo.__annotations__ = {\'ba...o(bar): pass\n+ def foo(bar): pass\nfoo.__annotations__ = {\'bar\': \'baz\'}\n'), ) reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _______________________________________________________________________ TestStr.test_u_literal_creates_newstr_object ________________________________________________________________________ self = , testcase = rawexcinfo = (, NameError("name 'b' is not defined"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________________ BuiltinTest.test_apply ___________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('TypeError not raised by apply'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________ BuiltinTest.test_bytearray_translate ____________________________________________________________________________ self = , testcase = rawexcinfo = (, TypeError("a bytes-like object is required, not 'str'"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _________________________________________________________________________________ BuiltinTest.test_callable _________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('False is not true'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_chr ____________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('ValueError not raised by chr'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_cmp ____________________________________________________________________________________ self = , testcase = rawexcinfo = (, ModuleNotFoundError("No module named 'UserList'"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________________ BuiltinTest.test_coerce __________________________________________________________________________________ self = , testcase = rawexcinfo = (, NameError("name 'coerce' is not defined"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _________________________________________________________________________________ BuiltinTest.test_compile __________________________________________________________________________________ self = , testcase = rawexcinfo = (, SyntaxError('invalid character in identifier', ('', 1, 8, 'print(1)\n')), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_eval ___________________________________________________________________________________ self = , testcase = rawexcinfo = (, SyntaxError('invalid character in identifier', ('', 1, 4, 'a')), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________________ BuiltinTest.test_filter __________________________________________________________________________________ self = , testcase = rawexcinfo = (, IndexError('tuple index out of range'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ____________________________________________________________________________ BuiltinTest.test_filter_subclasses _____________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('False is not true'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________________ BuiltinTest.test_format __________________________________________________________________________________ self = , testcase = rawexcinfo = (, TypeError("can't concat str to oldstr"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _______________________________________________________________________________ BuiltinTest.test_general_eval _______________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('TypeError not raised by eval'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _________________________________________________________________________________ BuiltinTest.test_getattr __________________________________________________________________________________ self = , testcase = rawexcinfo = (, ValueError('bytes must be in range(0, 256)'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed _________________________________________________________________________________ BuiltinTest.test_hasattr __________________________________________________________________________________ self = , testcase = rawexcinfo = (, ValueError('bytes must be in range(0, 256)'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________ BuiltinTest.test_input_and_raw_input ____________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError("'1+1' != 2"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________________ BuiltinTest.test_intern __________________________________________________________________________________ self = , testcase = rawexcinfo = (, TypeError('can only concatenate str (not "oldstr") to str'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_iter ___________________________________________________________________________________ self = , testcase = rawexcinfo = (, AttributeError("'tuple_iterator' object has no attribute 'next'"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_len ____________________________________________________________________________________ self = , testcase = rawexcinfo = (, TypeError("object of type 'ClassicStyle' has no len()"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_min ____________________________________________________________________________________ self = , testcase = rawexcinfo = (, TypeError("'<' not supported between instances of 'BadNumber' and 'int'"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_next ___________________________________________________________________________________ self = , testcase = rawexcinfo = (, TypeError("iter() returned non-iterator of type 'Iter'"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_oct ____________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError("'0o144' != '0144'\n- 0o144\n? -\n+ 0144\n"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_ord ____________________________________________________________________________________ self = , testcase = rawexcinfo = (, ValueError('bytes must be in range(0, 256)'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ BuiltinTest.test_pow ____________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('TypeError not raised by pow'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________________ BuiltinTest.test_range ___________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('RuntimeError not raised by oldrange'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________________ BuiltinTest.test_round ___________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError(" != "), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________________ BuiltinTest.test_unichr __________________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError("' ' != ' '"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ___________________________________________________________________________________ TestSorted.test_basic ___________________________________________________________________________________ self = , testcase = rawexcinfo = (, TypeError("'cmp' is an invalid keyword argument for sort()"), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed __________________________________________________________________________ TestTranslate.test_import_builtin_types __________________________________________________________________________ self = , testcase = rawexcinfo = (, AssertionError('False is not true'), ), reason = '' def addExpectedFailure( self, testcase: "unittest.TestCase", rawexcinfo: "_SysExcInfoType", reason: str = "", ) -> None: try: > xfail(str(reason)) E _pytest.outcomes.XFailed /usr/lib/python3.8/site-packages/_pytest/unittest.py:282: XFailed ----------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------ Succeeded! ------------------------------------------------------------------------------------- Captured log call ------------------------------------------------------------------------------------- DEBUG past.translation:__init__.py:364 Running find_spec: (test_builtin_types, None, None) DEBUG past.translation:__init__.py:309 Running exec_module for DEBUG past.translation:__init__.py:311 Autoconverting test_builtin_types DEBUG past.translation:__init__.py:235 Detected Python 2 code: /tmp/tmp4jlsgrzk/test_builtin_types.py ===================================================================================== warnings summary ====================================================================================== tests/test_future/test_builtins.py:266 /home/tkloczko/rpmbuild/BUILD/python-future-1.0.0/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-1.0.0/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-1.0.0/tests/test_future/test_htmlparser.py:685: DeprecationWarning: invalid escape sequence \= "", tests/test_future/test_http_cookiejar.py:1034 /home/tkloczko/rpmbuild/BUILD/python-future-1.0.0/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-1.0.0/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-1.0.0/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-1.0.0/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-1.0.0/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-1.0.0/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-1.0.0/tests/test_future/test_urllib_toplevel.py:626: DeprecationWarning: invalid escape sequence \^ should_quote.append('<>#%"{}|\^[]`') tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd /home/tkloczko/rpmbuild/BUILD/python-future-1.0.0/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', 'ab'),urllib_parse.splitpasswd('user:ab')) tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd /home/tkloczko/rpmbuild/BUILD/python-future-1.0.0/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\nb'),urllib_parse.splitpasswd('user:a\nb')) tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd /home/tkloczko/rpmbuild/BUILD/python-future-1.0.0/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\tb'),urllib_parse.splitpasswd('user:a\tb')) tests/test_future/test_urllib_toplevel.py::Utility_Tests::test_splitpasswd /home/tkloczko/rpmbuild/BUILD/python-future-1.0.0/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', '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-1.0.0/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', '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-1.0.0/tests/test_future/test_urllib_toplevel.py:1216: 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-1.0.0/tests/test_future/test_urllib_toplevel.py:1217: 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-1.0.0/tests/test_future/test_urllib_toplevel.py:1218: 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-1.0.0/tests/test_future/test_urllib_toplevel.py:1219: 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-1.0.0/tests/test_future/test_urllib_toplevel.py:1220: 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-1.0.0/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_past/test_oldstr.py::TestOldStr::test_unescape /home/tkloczko/rpmbuild/BUILDROOT/python-future-1.0.0-2.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/how-to/capture-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:1418: stdin and stdout must be ttys SKIPPED [1] tests/test_future/test_builtins.py:1424: stdin and stdout must be ttys SKIPPED [1] tests/test_future/test_builtins.py:1429: 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:649: test requires NumPy SKIPPED [1] tests/test_future/test_int.py:268: The first parameter must be positional with Python >= 3.7 SKIPPED [1] tests/test_future/test_int_old_division.py:27: old division tests only for Py2 SKIPPED [1] tests/test_future/test_int_old_division.py:81: old division tests only for Py2 SKIPPED [1] tests/test_future/test_int_old_division.py:36: old division tests only for Py2 SKIPPED [1] tests/test_future/test_int_old_division.py:51: 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:256: generic import tests are for Py2 only SKIPPED [1] tests/test_future/test_standard_library.py:188: not testing for old urllib on Py3 SKIPPED [1] tests/test_future/test_standard_library.py:328: Not testing tkinter import (it may be installed separately from Python) SKIPPED [1] tests/test_future/test_standard_library.py:337: 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:1242: 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:1187: 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_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: ================================================================ 1060 passed, 37 skipped, 46 xfailed, 23 warnings in 28.79s ================================================================= ```

So it is not failing now but still I think that it is something to do .. 🤔

edschofield commented 4 months ago

Yes, there's always more that can be done to improve things! But note that a large part of the work that would need to be done to get the xfail tests passing would be in updating the python-future test suite itself.

For context, most of the unit tests in python-future are from the Python 3.3 and Python 3.4 test suites. If we tested Python 3.12 against the Python 3.4 test suite we'd also see a large number of tests failing.The tests in Python have been modified over that time in sync with Python itself, whereas the test suite in python-future hasn't been updated comprehensively.

kloczek commented 4 months ago

I think that it would be good to star cut that tail to at least support python 3.9.

cclauss commented 4 months ago

DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+

  • 635


    setup.py build setup.py install --root </install/prefix>

Warning: Running python setup.py directly as a script is deprecated.