2020.7.14: test suite is failing

Create issue
Issue #380 closed
Former user created an issue

python 3.8.3

+ /usr/bin/python3 setup.py test
running test
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
writing regex.egg-info/PKG-INFO
writing dependency_links to regex.egg-info/dependency_links.txt
writing top-level names to regex.egg-info/top_level.txt
reading manifest file 'regex.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'regex.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-3.8/regex/_regex.cpython-38-x86_64-linux-gnu.so -> regex_3
regex_2 (unittest.loader._FailedTest) ... ERROR
test_anyall (regex_3.test_regex.RegexTests) ... ok
test_ascii_and_unicode_flag (regex_3.test_regex.RegexTests) ... ok
test_atomic (regex_3.test_regex.RegexTests) ... ok
test_basic_regex_sub (regex_3.test_regex.RegexTests) ... ok
test_bigcharset (regex_3.test_regex.RegexTests) ... ok
test_branch_reset (regex_3.test_regex.RegexTests) ... ok
test_bug_10328 (regex_3.test_regex.RegexTests) ... ok
test_bug_113254 (regex_3.test_regex.RegexTests) ... ok
test_bug_114660 (regex_3.test_regex.RegexTests) ... ok
test_bug_117612 (regex_3.test_regex.RegexTests) ... ok
test_bug_14462 (regex_3.test_regex.RegexTests) ... ok
test_bug_1661 (regex_3.test_regex.RegexTests) ... ok
test_bug_3629 (regex_3.test_regex.RegexTests) ... ok
test_bug_418626 (regex_3.test_regex.RegexTests) ... ok
test_bug_448951 (regex_3.test_regex.RegexTests) ... ok
test_bug_449000 (regex_3.test_regex.RegexTests) ... ok
test_bug_449964 (regex_3.test_regex.RegexTests) ... ok
test_bug_462270 (regex_3.test_regex.RegexTests) ... ok
test_bug_527371 (regex_3.test_regex.RegexTests) ... ok
test_bug_545855 (regex_3.test_regex.RegexTests) ... ok
test_bug_581080 (regex_3.test_regex.RegexTests) ... ok
test_bug_612074 (regex_3.test_regex.RegexTests) ... ok
test_bug_725106 (regex_3.test_regex.RegexTests) ... ok
test_bug_725149 (regex_3.test_regex.RegexTests) ... ok
test_bug_764548 (regex_3.test_regex.RegexTests) ... ok
test_bug_817234 (regex_3.test_regex.RegexTests) ... ok
test_bug_926075 (regex_3.test_regex.RegexTests) ... ok
test_bug_931848 (regex_3.test_regex.RegexTests) ... ok
test_bytes_str_mixing (regex_3.test_regex.RegexTests) ... ok
test_captures (regex_3.test_regex.RegexTests) ... ok
test_case_folding (regex_3.test_regex.RegexTests) ... ok
test_category (regex_3.test_regex.RegexTests) ... ok
test_common_prefix (regex_3.test_regex.RegexTests) ... ok
test_constants (regex_3.test_regex.RegexTests) ... ok
test_copy (regex_3.test_regex.RegexTests) ... ok
test_dollar_matches_twice (regex_3.test_regex.RegexTests) ... ok
test_empty_array (regex_3.test_regex.RegexTests) ... ok
test_expand (regex_3.test_regex.RegexTests) ... ok
test_finditer (regex_3.test_regex.RegexTests) ... ok
test_flags (regex_3.test_regex.RegexTests) ... ok
test_format (regex_3.test_regex.RegexTests) ... ok
test_fullmatch (regex_3.test_regex.RegexTests) ... ok
test_fuzzy (regex_3.test_regex.RegexTests) ... ok
test_fuzzy_ext (regex_3.test_regex.RegexTests) ... ok
test_getattr (regex_3.test_regex.RegexTests) ... ok
test_grapheme (regex_3.test_regex.RegexTests) ... ok
test_groupdict (regex_3.test_regex.RegexTests) ... ok
test_guards (regex_3.test_regex.RegexTests) ... ok
test_hg_bugs (regex_3.test_regex.RegexTests) ... CHARACTER MATCH 'a'
ERROR
test_ignore_case (regex_3.test_regex.RegexTests) ... ok
test_inline_flags (regex_3.test_regex.RegexTests) ... ok
test_issue_18468 (regex_3.test_regex.RegexTests) ... ok
test_line_boundary (regex_3.test_regex.RegexTests) ... ok
test_lookbehind (regex_3.test_regex.RegexTests) ... ok
test_more_zerowidth (regex_3.test_regex.RegexTests) ... ok
test_named_lists (regex_3.test_regex.RegexTests) ... /usr/lib64/python3.8/site-packages/regex/regex.py:251: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
  return _compile(pattern, flags, ignore_unused, kwargs).match(string, pos,
/usr/lib64/python3.8/site-packages/regex/_regex_core.py:296: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
  return _regex.fold_case(flags, string)
ok
test_new_named_groups (regex_3.test_regex.RegexTests) ... ok
test_non_consuming (regex_3.test_regex.RegexTests) ... ok
test_not_literal (regex_3.test_regex.RegexTests) ... ok
test_overlapped (regex_3.test_regex.RegexTests) ... ok
test_partial (regex_3.test_regex.RegexTests) ... ok
test_possessive (regex_3.test_regex.RegexTests) ... ok
test_properties (regex_3.test_regex.RegexTests) ... ok
test_qualified_re_split (regex_3.test_regex.RegexTests) ... ok
test_qualified_re_sub (regex_3.test_regex.RegexTests) ... ok
test_re_escape (regex_3.test_regex.RegexTests) ... ok
test_re_escape_byte (regex_3.test_regex.RegexTests) ... ok
test_re_findall (regex_3.test_regex.RegexTests) ... ok
test_re_groupref (regex_3.test_regex.RegexTests) ... ok
test_re_groupref_exists (regex_3.test_regex.RegexTests) ... ok
test_re_match (regex_3.test_regex.RegexTests) ... ok
test_re_split (regex_3.test_regex.RegexTests) ... ok
test_re_subn (regex_3.test_regex.RegexTests) ... ok
test_recursive (regex_3.test_regex.RegexTests) ... ok
test_repeat_minmax (regex_3.test_regex.RegexTests) ... ok
test_repeated_repeats (regex_3.test_regex.RegexTests) ... ok
test_replacement (regex_3.test_regex.RegexTests) ... ok
test_scanner (regex_3.test_regex.RegexTests) ... ok
test_scoped_and_inline_flags (regex_3.test_regex.RegexTests) ... ok
test_search_anchor (regex_3.test_regex.RegexTests) ... ok
test_search_coverage (regex_3.test_regex.RegexTests) ... ok
test_search_reverse (regex_3.test_regex.RegexTests) ... ok
test_search_star_plus (regex_3.test_regex.RegexTests) ... ok
test_set (regex_3.test_regex.RegexTests) ... ok
test_special_escapes (regex_3.test_regex.RegexTests) ... ok
test_splititer (regex_3.test_regex.RegexTests) ... ok
test_sre_character_class_literals (regex_3.test_regex.RegexTests) ... ok
test_sre_character_literals (regex_3.test_regex.RegexTests) ... ok
test_stack_overflow (regex_3.test_regex.RegexTests) ... ok
test_sub_template_numeric_escape (regex_3.test_regex.RegexTests) ... ok
test_subscripted_captures (regex_3.test_regex.RegexTests) ... ok
test_subscripting_match (regex_3.test_regex.RegexTests) ... ok
test_symbolic_refs (regex_3.test_regex.RegexTests) ... ok
test_turkic (regex_3.test_regex.RegexTests) ... ok
test_unmatched_in_sub (regex_3.test_regex.RegexTests) ... ok
test_various (regex_3.test_regex.RegexTests) ... ok
test_weakref (regex_3.test_regex.RegexTests) ... ok
test_word_boundary (regex_3.test_regex.RegexTests) ... ok
test_word_class (regex_3.test_regex.RegexTests) ... ok
test_zerowidth (regex_3.test_regex.RegexTests) ... ok

======================================================================
ERROR: regex_2 (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: regex_2
Traceback (most recent call last):
  File "/usr/lib64/python3.8/unittest/loader.py", line 470, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib64/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/home/tkloczko/rpmbuild/BUILD/regex-2020.7.14/regex_2/__init__.py", line 1, in <module>
    from .regex import *
  File "/home/tkloczko/rpmbuild/BUILD/regex-2020.7.14/regex_2/regex.py", line 501
    except error, e:
                ^
SyntaxError: invalid syntax


======================================================================
ERROR: test_hg_bugs (regex_3.test_regex.RegexTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/regex-2020.7.14/regex_3/test_regex.py", line 4224, in test_hg_bugs
    self.assertEqual(regex.match('(?e)(?:^(\\$ )?\\d{1,3}(,\\d{3})*(\\.\\d{2})$){s<=1,i<=1,d<=1}',
AttributeError: 'NoneType' object has no attribute 'fuzzy_counts'

----------------------------------------------------------------------
Ran 101 tests in 0.320s

FAILED (errors=2)
Test failed: <unittest.runner.TextTestResult run=101 errors=2 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=101 errors=2 failures=0>
error: Bad exit status from /var/tmp/rpm-tmp.2ChqFl (%check)

Comments (3)

  1. Matthew Barnett repo owner

    The source distribution and the Git repository contain versions for both Python 2 and Python 3. Your use of python3 setup.py test` is trying both of them. Why? I don’t know. Just delete the regex_2 subfolder to get rid of the Python 2 version.

  2. Tomasz Kłoczko

    Yep after remove regex_2 it works.

    BTW: Python 2.x is alredy EOSed so I think that regex_2 could be removed.

  3. Log in to comment