-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.18.2 + master: pytest fails and warnings #593
Comments
And even after deselecting those failing units new are popping up. ================================================================================= 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/ |
Just tested running 3 times that after disanble + /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()'. |
Is this now fixed? |
Just tested 1.0.0 Here is pytest output+ 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 = <TestCaseFunction test_hash_with_native_types>, testcase = <test_future.test_bytes.TestBytes testMethod=test_hash_with_native_types>
rawexcinfo = (<class 'TypeError'>, TypeError("assertEqual() missing 1 required positional argument: 'second'"), <traceback object at 0x7fca86e127c0>), 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 = <TestCaseFunction test_file>, testcase = <test_future.test_futurize.TestFuturizeSimple testMethod=test_file>
rawexcinfo = (<class 'future.tests.base.VerboseCalledProcessError'>, VerboseCalledProcessError("Error running the command /usr/bin/...f.close()\n\n----", 1, ['/usr/bin/python3', '/tmp/tmpsvn16snx/mytestscript.py']), <traceback object at 0x7fca86eb2600>)
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 = <TestCaseFunction test_izip>, testcase = <test_future.test_futurize.TestFuturizeSimple testMethod=test_izip>
rawexcinfo = (<class 'AssertionError'>, AssertionError('internal usage error: dedent the code before calling order_future_lines()'), <traceback object at 0x7fca86e786c0>), 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 = <TestCaseFunction test_no_unneeded_list_calls>, testcase = <test_future.test_futurize.TestFuturizeSimple testMethod=test_no_unneeded_list_calls>
rawexcinfo = (<class 'AssertionError'>, 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"), <traceback object at 0x7fca86b2bf40>)
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 = <TestCaseFunction test_problematic_string>, testcase = <test_future.test_futurize.TestFuturizeSimple testMethod=test_problematic_string>
rawexcinfo = (<class 'future.tests.base.FuturizeError'>, FuturizeError('Error running the command /usr/bin/python3 futurize.py -w /..., ['/usr/bin/python3', 'futurize.py', '-w', '/tmp/tmpin9gj38d/mytestscript.py']), <traceback object at 0x7fca86bc9e80>)
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 = <TestCaseFunction test_Py2_StringIO_module>, testcase = <test_future.test_futurize.TestFuturizeRenamedStdlib testMethod=test_Py2_StringIO_module>
rawexcinfo = (<class 'future.tests.base.VerboseCalledProcessError'>, VerboseCalledProcessError("Error running the command /usr/bin/...nputType)\n\n----", 1, ['/usr/bin/python3', '/tmp/tmpdxogmgso/mytestscript.py']), <traceback object at 0x7fca877b6fc0>)
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 = <TestCaseFunction test_absolute_import_changes>, testcase = <test_future.test_futurize.TestFuturizeStage1 testMethod=test_absolute_import_changes>
rawexcinfo = (<class 'future.tests.base.VerboseCalledProcessError'>, VerboseCalledProcessError("Error running the command /usr/bin/...el.blah()\n\n----", 1, ['/usr/bin/python3', '/tmp/tmp77dfj2c_/mytestscript.py']), <traceback object at 0x7fca86d0aa80>)
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 = <TestCaseFunction test_issue_12>, testcase = <test_future.test_futurize.TestFuturizeStage1 testMethod=test_issue_12>
rawexcinfo = (<class 'future.tests.base.VerboseCalledProcessError'>, VerboseCalledProcessError("Error running the command /usr/bin/...n pass\n\n----", 1, ['/usr/bin/python3', '/tmp/tmpove4_70n/mytestscript.py']), <traceback object at 0x7fca86bd4a80>)
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 = <TestCaseFunction test_next_2>, testcase = <test_future.test_futurize.TestFuturizeStage1 testMethod=test_next_2>
rawexcinfo = (<class 'AssertionError'>, 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\')'), <traceback object at 0x7fca86c69f00>)
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 = <TestCaseFunction test_print_already_function_complex>, testcase = <test_future.test_futurize.TestFuturizeStage1 testMethod=test_print_already_function_complex>
rawexcinfo = (<class 'future.tests.base.FuturizeError'>, FuturizeError("Error running the command /usr/bin/python3 futurize.py --st.../python3', 'futurize.py', '--stage1', '-w', '/tmp/tmpvd61hk6_/mytestscript.py']), <traceback object at 0x7fca868f1800>)
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 = <TestCaseFunction test_string_exceptions>, testcase = <test_future.test_futurize.TestFuturizeStage1 testMethod=test_string_exceptions>
rawexcinfo = (<class 'AssertionError'>, AssertionError('\'try:\\n raise "old string exception"\\nexcept Exception as e:\\n pa... ++++++++++ +\n except Exception as e:\n pass'), <traceback object at 0x7fca86ed5c80>)
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 = <TestCaseFunction test_basestring>, testcase = <test_future.test_futurize.TestConservativeFuturize testMethod=test_basestring>
rawexcinfo = (<class 'future.tests.base.FuturizeError'>, FuturizeError("Error running the command /usr/bin/python3 futurize.py --co...n3', 'futurize.py', '--conservative', '-w', '/tmp/tmpif0db26s/mytestscript.py']), <traceback object at 0x7fca868e6a80>)
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 = <TestCaseFunction test_open>, testcase = <test_future.test_futurize.TestConservativeFuturize testMethod=test_open>
rawexcinfo = (<class 'future.tests.base.FuturizeError'>, FuturizeError("Error running the command /usr/bin/python3 futurize.py --co...n3', 'futurize.py', '--conservative', '-w', '/tmp/tmpegpmnfgz/mytestscript.py']), <traceback object at 0x7fca86c68500>)
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 = <TestCaseFunction test_exception_indentation>, testcase = <test_future.test_pasteurize.TestPasteurize testMethod=test_exception_indentation>
rawexcinfo = (<class 'future.tests.base.VerboseCalledProcessError'>, VerboseCalledProcessError('Error running the command /usr/bin/...eback(tb)\n\n----', 1, ['/usr/bin/python3', '/tmp/tmpdsqfmr2g/mytestscript.py']), <traceback object at 0x7fca866c8540>)
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 = <TestCaseFunction test_urllib_request>, testcase = <test_future.test_pasteurize.TestPasteurize testMethod=test_urllib_request>
rawexcinfo = (<class 'future.tests.base.VerboseCalledProcessError'>, VerboseCalledProcessError("Error running the command /usr/bin/...r.read())\n\n----", 1, ['/usr/bin/python3', '/tmp/tmp1dvfrmhr/mytestscript.py']), <traceback object at 0x7fca866cf200>)
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 = <TestCaseFunction test_return_annotations_alone>, testcase = <test_future.test_pasteurize.TestFuturizeAnnotations testMethod=test_return_annotations_alone>
rawexcinfo = (<class 'AssertionError'>, AssertionError('\'def foo(): pass\' != "def foo(): pass\\nfoo.__annotations__ = {\'return\'... foo(): pass\n+ def foo(): pass\nfoo.__annotations__ = {\'return\': \'bar\'}\n'), <traceback object at 0x7fca866dc5c0>)
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 = <TestCaseFunction test_single_param_annotations>, testcase = <test_future.test_pasteurize.TestFuturizeAnnotations testMethod=test_single_param_annotations>
rawexcinfo = (<class 'AssertionError'>, 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'), <traceback object at 0x7fca86667a40>)
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 = <TestCaseFunction test_u_literal_creates_newstr_object>, testcase = <test_future.test_str.TestStr testMethod=test_u_literal_creates_newstr_object>
rawexcinfo = (<class 'NameError'>, NameError("name 'b' is not defined"), <traceback object at 0x7fca861d6bc0>), 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 = <TestCaseFunction test_apply>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_apply>
rawexcinfo = (<class 'AssertionError'>, AssertionError('TypeError not raised by apply'), <traceback object at 0x7fca86017740>), 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 = <TestCaseFunction test_bytearray_translate>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_bytearray_translate>
rawexcinfo = (<class 'TypeError'>, TypeError("a bytes-like object is required, not 'str'"), <traceback object at 0x7fca86129800>), 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 = <TestCaseFunction test_callable>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_callable>
rawexcinfo = (<class 'AssertionError'>, AssertionError('False is not true'), <traceback object at 0x7fca85ff3e80>), 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 = <TestCaseFunction test_chr>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_chr>
rawexcinfo = (<class 'AssertionError'>, AssertionError('ValueError not raised by chr'), <traceback object at 0x7fca85fefd00>), 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 = <TestCaseFunction test_cmp>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_cmp>
rawexcinfo = (<class 'ModuleNotFoundError'>, ModuleNotFoundError("No module named 'UserList'"), <traceback object at 0x7fca861297c0>), 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 = <TestCaseFunction test_coerce>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_coerce>
rawexcinfo = (<class 'NameError'>, NameError("name 'coerce' is not defined"), <traceback object at 0x7fca8609eac0>), 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 = <TestCaseFunction test_compile>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_compile>
rawexcinfo = (<class 'SyntaxError'>, SyntaxError('invalid character in identifier', ('', 1, 8, 'print(1)\n')), <traceback object at 0x7fca86097040>), 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 = <TestCaseFunction test_eval>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_eval>
rawexcinfo = (<class 'SyntaxError'>, SyntaxError('invalid character in identifier', ('<string>', 1, 4, 'a')), <traceback object at 0x7fca8609b2c0>), 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 = <TestCaseFunction test_filter>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_filter>
rawexcinfo = (<class 'IndexError'>, IndexError('tuple index out of range'), <traceback object at 0x7fca8617d7c0>), 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 = <TestCaseFunction test_filter_subclasses>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_filter_subclasses>
rawexcinfo = (<class 'AssertionError'>, AssertionError('False is not true'), <traceback object at 0x7fca861671c0>), 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 = <TestCaseFunction test_format>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_format>
rawexcinfo = (<class 'TypeError'>, TypeError("can't concat str to oldstr"), <traceback object at 0x7fca861d2440>), 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 = <TestCaseFunction test_general_eval>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_general_eval>
rawexcinfo = (<class 'AssertionError'>, AssertionError('TypeError not raised by eval'), <traceback object at 0x7fca8613f080>), 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 = <TestCaseFunction test_getattr>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_getattr>
rawexcinfo = (<class 'ValueError'>, ValueError('bytes must be in range(0, 256)'), <traceback object at 0x7fca86f4a8c0>), 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 = <TestCaseFunction test_hasattr>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_hasattr>
rawexcinfo = (<class 'ValueError'>, ValueError('bytes must be in range(0, 256)'), <traceback object at 0x7fca86048980>), 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 = <TestCaseFunction test_input_and_raw_input>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_input_and_raw_input>
rawexcinfo = (<class 'AssertionError'>, AssertionError("'1+1' != 2"), <traceback object at 0x7fca860980c0>), 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 = <TestCaseFunction test_intern>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_intern>
rawexcinfo = (<class 'TypeError'>, TypeError('can only concatenate str (not "oldstr") to str'), <traceback object at 0x7fca86697300>), 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 = <TestCaseFunction test_iter>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_iter>
rawexcinfo = (<class 'AttributeError'>, AttributeError("'tuple_iterator' object has no attribute 'next'"), <traceback object at 0x7fca86167240>), 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 = <TestCaseFunction test_len>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_len>
rawexcinfo = (<class 'TypeError'>, TypeError("object of type 'ClassicStyle' has no len()"), <traceback object at 0x7fca867ce500>), 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 = <TestCaseFunction test_min>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_min>
rawexcinfo = (<class 'TypeError'>, TypeError("'<' not supported between instances of 'BadNumber' and 'int'"), <traceback object at 0x7fca860cee40>), 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 = <TestCaseFunction test_next>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_next>
rawexcinfo = (<class 'TypeError'>, TypeError("iter() returned non-iterator of type 'Iter'"), <traceback object at 0x7fca85fe9a00>), 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 = <TestCaseFunction test_oct>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_oct>
rawexcinfo = (<class 'AssertionError'>, AssertionError("'0o144' != '0144'\n- 0o144\n? -\n+ 0144\n"), <traceback object at 0x7fca864ae7c0>), 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 = <TestCaseFunction test_ord>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_ord>
rawexcinfo = (<class 'ValueError'>, ValueError('bytes must be in range(0, 256)'), <traceback object at 0x7fca864c0b80>), 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 = <TestCaseFunction test_pow>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_pow>
rawexcinfo = (<class 'AssertionError'>, AssertionError('TypeError not raised by pow'), <traceback object at 0x7fca85fef100>), 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 = <TestCaseFunction test_range>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_range>
rawexcinfo = (<class 'AssertionError'>, AssertionError('RuntimeError not raised by oldrange'), <traceback object at 0x7fca864f1340>), 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 = <TestCaseFunction test_round>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_round>
rawexcinfo = (<class 'AssertionError'>, AssertionError("<class 'int'> != <class 'float'>"), <traceback object at 0x7fca860a2140>), 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 = <TestCaseFunction test_unichr>, testcase = <test_past.test_builtins.BuiltinTest testMethod=test_unichr>
rawexcinfo = (<class 'AssertionError'>, AssertionError("' ' != ' '"), <traceback object at 0x7fca8609a840>), 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 = <TestCaseFunction test_basic>, testcase = <test_past.test_builtins.TestSorted testMethod=test_basic>
rawexcinfo = (<class 'TypeError'>, TypeError("'cmp' is an invalid keyword argument for sort()"), <traceback object at 0x7fca8776b0c0>), 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 = <TestCaseFunction test_import_builtin_types>, testcase = <test_past.test_translation.TestTranslate testMethod=test_import_builtin_types>
rawexcinfo = (<class 'AssertionError'>, AssertionError('False is not true'), <traceback object at 0x7fca85937e80>), 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 <module 'test_builtin_types' from '/tmp/tmp4jlsgrzk/test_builtin_types.py'>
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 \=
"<a $><b $=%><c \=/>",
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 .. 🤔 |
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.
|
I think that it would be good to star cut that tail to at least support python 3.9. |
DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+
Warning: Running |
Actually I've used everything up to 3f40bd7 + #544
I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.
Looks like there some issue
The text was updated successfully, but these errors were encountered: