edgewall / genshi

Python toolkit for generation of output for the web
http://genshi.edgewall.org
Other
86 stars 35 forks source link

0.7.5: pytest warnings #41

Closed kloczek closed 3 years ago

kloczek commented 3 years ago
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-genshi-0.7.5-3.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-genshi-0.7.5-3.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, flaky-3.7.0, cases-3.4.6, hypothesis-6.10.0
collected 57 items

genshi/filters/tests/test_html.py .........................................................                                                                          [100%]

============================================================================= warnings summary =============================================================================
genshi/filters/html.py:357
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/html.py:357: DeprecationWarning: invalid escape sequence \s
    u'[Uu][Rr\u0280][Ll\u029F]\s*\(([^)]+)').finditer

genshi/filters/i18n.py:983
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/i18n.py:983: DeprecationWarning: invalid escape sequence \[
    data = data.replace('[', '\[').replace(']', '\]')

genshi/filters/i18n.py:983
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/i18n.py:983: DeprecationWarning: invalid escape sequence \]
    data = data.replace('[', '\[').replace(']', '\]')

genshi/filters/i18n.py:1038
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/i18n.py:1038: DeprecationWarning: invalid escape sequence \[
    part.replace('\[', '[').replace('\]', ']'),

genshi/filters/i18n.py:1038
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/i18n.py:1038: DeprecationWarning: invalid escape sequence \]
    part.replace('\[', '[').replace('\]', ']'),

genshi/template/interpolation.py:34
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/template/interpolation.py:34: DeprecationWarning: Flags not at the start of the expression '[uU]?[rR]?("""|\\\'\\\'\\' (truncated)
    token_re = re.compile('%s|%s(?s)' % (

genshi/path.py:663
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/path.py:663: DeprecationWarning: invalid escape sequence \d
    _tokenize = re.compile('("[^"]*")|(\'[^\']*\')|((?:\d+)?\.\d+)|(%s)|([^%s\s]+)|\s+' % (

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_multi_value_auto
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:154: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_multi_value_auto
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:157: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_multi_value_defined
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:165: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_multi_value_defined
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:168: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_single_value_auto
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:132: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_single_value_auto
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:135: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_single_value_auto_no_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:124: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_single_value_defined
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:143: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_checkbox_single_value_defined
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:146: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_hidden_multi_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:70: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_hidden_no_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:54: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_hidden_single_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:62: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_password_disabled
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:354: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_password_enabled
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:362: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_radio_empty_string
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:206: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_radio_multi_empty_string
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:214: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_radio_multi_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:195: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_radio_multi_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:198: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_radio_no_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:176: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_radio_single_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:184: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_radio_single_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:187: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_text_multi_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:46: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_text_no_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:30: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_input_text_single_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:38: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_option_segmented_text
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:320: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(u"""<form>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_option_segmented_text_no_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:332: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_option_unicode_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:344: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(u"""<form>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_select_multi_value_auto
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:290: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_select_multi_value_defined
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:306: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_select_no_value_auto
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:226: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_select_no_value_defined
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:242: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_select_single_value_auto
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:258: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_select_single_value_defined
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:274: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_textarea_multi_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:94: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_textarea_multiple
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:105: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_textarea_no_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:78: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_textarea_preserve_original
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:115: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLFormFillerTestCase::test_fill_textarea_single_value
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:86: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals("""<form><p>

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_close_empty_tag
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:413: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<a href="#">fo<br/>o</a>',

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_entityref_text
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:403: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(u'<a href="#">foö</a>',

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_escape_attr
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:408: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div title="&lt;foo&gt;"/>',

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_escape_text
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:395: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<a href="#">fo&amp;</a>',

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_escape_text
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:398: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<a href="#">&lt;foo&gt;</a>',

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_invalid_entity
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:418: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('&amp;junk;', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_comments
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:443: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_input_password
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:439: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<form/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_onclick_attr
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:435: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_script_elem
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:422: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_script_elem
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:424: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_script_elem
genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_src_javascript
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:383: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(expected, sanitized_html)

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_src_javascript
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:497: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<img/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_src_javascript
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:500: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<img/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_src_javascript
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:507: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<img/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_src_javascript
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:513: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<img/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_src_javascript
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:518: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<img/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_src_javascript
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:521: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<img/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_src_javascript
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:524: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<img/>', (html | HTMLSanitizer()).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_phishing
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:482: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div style="top:0"/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_phishing
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:485: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div style="margin:10px 20px"/>',

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_phishing
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:489: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_phishing
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:491: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_phishing
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:493: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:449: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:452: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:455: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:458: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:460: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:463: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div style="color: #fff"/>',

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:468: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:470: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:472: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:474: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_remove_style_scripts
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:476: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<div/>', (html | sanitizer).render())

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_unchanged
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:387: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<a href="#">fo<br/>o</a>',

genshi/filters/tests/test_html.py::HTMLSanitizerTestCase::test_sanitize_unchanged
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/tests/test_html.py:390: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals('<a href="#with:colon">foo</a>',

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================== 57 passed, 83 warnings in 0.30s ======================================================================
hodgestar commented 3 years ago

@kloczek Should be pretty straight forward to fix. Are you up for opening a PR for this? If so, I can review.

kloczek commented 3 years ago

I'm not that good on doing such things .. sorry :P I'm just packaging many python modules as rpm packages and I'm trying to provide any possible feedback about what I'm able to spot :)

hodgestar commented 3 years ago

Thanks for point these out then. Hopefully me or someone else will find a moment to try fix them.

hodgestar commented 3 years ago

Fixed in #42. Thanks for reporting.

kloczek commented 3 years ago

Just tested that patch and looks like still there are some warnings😋

[tkloczko@barrel SPECS]$ rpmbuild -ba --with check python-genshi.spec --nodeps
warning: Downloading https://github.com/edgewall/genshi//archive/0.7.5/python-genshi-0.7.5.tar.gz to /home/tkloczko/rpmbuild/SOURCES/python-genshi-0.7.5.tar.gz
warning: Downloading https://github.com/edgewall/genshi//commit/647b3ff3.patch#/python-genshi-Replace-deprecated-assertEquals-with-assertEqual.patch to /home/tkloczko/rpmbuild/SOURCES/python-genshi-Replace-deprecated-assertEquals-with-assertEqual.patch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.FAWVD5
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd /home/tkloczko/rpmbuild/BUILD
+ rm -rf genshi-0.7.5
+ /usr/bin/gzip -dc /home/tkloczko/rpmbuild/SOURCES/python-genshi-0.7.5.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd genshi-0.7.5
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/python-genshi-Replace-deprecated-assertEquals-with-assertEqual.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ RPM_EC=0
++ jobs -p
+ exit 0

[..]

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.YJ9MZy
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd genshi-0.7.5
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin'
+ PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-genshi-0.7.5-4.1.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbin
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-genshi-0.7.5-4.1.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-genshi-0.7.5-4.1.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, flaky-3.7.0, cases-3.4.6, hypothesis-6.10.1, case-1.5.3, isort-1.3.0, aspectlib-1.5.2
collected 57 items

genshi/filters/tests/test_html.py .........................................................                                                                          [100%]

============================================================================= warnings summary =============================================================================
genshi/filters/html.py:357
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/html.py:357: DeprecationWarning: invalid escape sequence \s
    u'[Uu][Rr\u0280][Ll\u029F]\s*\(([^)]+)').finditer

genshi/filters/i18n.py:983
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/i18n.py:983: DeprecationWarning: invalid escape sequence \[
    data = data.replace('[', '\[').replace(']', '\]')

genshi/filters/i18n.py:983
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/i18n.py:983: DeprecationWarning: invalid escape sequence \]
    data = data.replace('[', '\[').replace(']', '\]')

genshi/filters/i18n.py:1038
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/i18n.py:1038: DeprecationWarning: invalid escape sequence \[
    part.replace('\[', '[').replace('\]', ']'),

genshi/filters/i18n.py:1038
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/filters/i18n.py:1038: DeprecationWarning: invalid escape sequence \]
    part.replace('\[', '[').replace('\]', ']'),

genshi/template/interpolation.py:34
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/template/interpolation.py:34: DeprecationWarning: Flags not at the start of the expression '[uU]?[rR]?("""|\\\'\\\'\\' (truncated)
    token_re = re.compile('%s|%s(?s)' % (

genshi/path.py:663
  /home/tkloczko/rpmbuild/BUILD/genshi-0.7.5/genshi/path.py:663: DeprecationWarning: invalid escape sequence \d
    _tokenize = re.compile('("[^"]*")|(\'[^\']*\')|((?:\d+)?\.\d+)|(%s)|([^%s\s]+)|\s+' % (

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 57 passed, 7 warnings in 0.28s ======================================================================