when i run test, it failed some test.
This seems to be hypothesis' mistake.
compatibility question?
[ 74s] + /usr/bin/python3 -m pytest
[ 75s] ============================= test session starts ==============================
[ 75s] platform linux -- Python 3.7.9, pytest-3.6.4, py-1.5.4, pluggy-0.6.0
[ 75s] rootdir: /home/abuild/rpmbuild/BUILD/python-dateutil-2.8.1, inifile: setup.cfg
[ 75s] plugins: hypothesis-3.66.11
[ 76s] collected 2076 items
[ 76s]
[ 76s] dateutil/test/test_easter.py ........................................... [ 2%]
[ 76s] ........................................................................ [ 5%]
[ 76s] ................................................ [ 7%]
[ 76s] dateutil/test/test_import_star.py . [ 7%]
[ 76s] dateutil/test/test_imports.py .................sss... [ 9%]
[ 76s] dateutil/test/test_internals.py .... [ 9%]
[ 76s] dateutil/test/test_isoparser.py ........................................ [ 11%]
[ 76s] ........................................................................ [ 14%]
[ 76s] ........................................................................ [ 18%]
[ 76s] ........................................................................ [ 21%]
[ 77s] ........................................................................ [ 25%]
[ 77s] .......x...x............................................................ [ 28%]
[ 77s] ........................................................................ [ 31%]
[ 77s] ........................................................................ [ 35%]
[ 77s] .....................xx [ 36%]
[ 77s] dateutil/test/test_parser.py ........................................... [ 38%]
[ 77s] ........................................................................ [ 42%]
[ 77s] ........................................................................ [ 45%]
[ 79s] .................................xxxxxxxxxxxxx......... [ 48%]
[ 79s] dateutil/test/test_relativedelta.py .................................... [ 49%]
[ 79s] ............................................. [ 52%]
[ 79s] dateutil/test/test_rrule.py ............................................ [ 54%]
[ 79s] ........................................................................ [ 57%]
[ 79s] ........................................................................ [ 61%]
[ 80s] ........................................................................ [ 64%]
[ 80s] ........................................................................ [ 68%]
[ 80s] ........................................................................ [ 71%]
[ 80s] ........................................................................ [ 75%]
[ 81s] ................................................................x....... [ 78%]
[ 81s] .............. [ 79%]
[ 81s] dateutil/test/test_tz.py ............................s...............s.. [ 81%]
[ 81s] ...........................................s............................ [ 84%]
[ 82s] .x.....s......................................s......................... [ 88%]
[ 82s] ..s..................................................................... [ 91%]
[ 82s] ............s......................................s.sssssssssssssssssss [ 95%]
[ 83s] sssssssssssssss....s..........s......................................... [ 98%]
[ 83s] ............... [ 99%]
[ 83s] dateutil/test/test_utils.py ....... [ 99%]
[ 84s] dateutil/test/property/test_isoparse_prop.py F [ 99%]
[ 84s] dateutil/test/property/test_parser_prop.py FF [ 99%]
[ 84s] docs/exercises/solutions/mlk_day_rrule_solution.py . [100%]
[ 84s]
[ 84s] =================================== FAILURES ===================================
[ 84s] ______________________________ test_timespec_auto ______________________________
[ 84s]
[ 84s] @pytest.mark.isoparser
[ 84s] > @given(dt=st.datetimes(timezones=TIME_ZONE_STRATEGY), sep=ASCII_STRATEGY)
[ 84s] def test_timespec_auto(dt, sep):
[ 84s]
[ 84s] dateutil/test/property/test_isoparse_prop.py:17:
[ 84s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 84s]
[ 84s] self = <hypothesis.core.StateForActualGivenExecution object at 0xfffd415183d0>
[ 84s] test_runner = <function default_new_style_executor at 0xfffd43596440>
[ 84s] search_strategy = tuples(just(()), fixed_dictionaries({'dt': datetimes(timezones=sampled_from([None,
[ 84s] tzutc(),
[ 84s] tzfile('/usr/share/zon.../usr/share/zoneinfo/Europe/London')])),
[ 84s] 'sep': characters(max_codepoint=127)}).map(lambda args: dict(args, **kwargs)))
[ 84s] test = <function test_timespec_auto at 0xfffd42ae4d40>
[ 84s] settings = settings(buffer_size=8192, database=DirectoryBasedExampleDatabase('/home/abuild/rpmbuild/BUILD/python-dateutil-2.8.1/....INFER: 1>, stateful_step_count=50, suppress_health_check=(), timeout=60, use_coverage=True, verbosity=Verbosity.normal)
[ 84s] random = <random.Random object at 0xaaac781325a0>, had_seed = None
[ 84s]
[ 84s] def __init__(
[ 84s] self, test_runner, search_strategy, test, settings, random, had_seed
[ 84s] ):
[ 84s] self.test_runner = test_runner
[ 84s] self.search_strategy = search_strategy
[ 84s] self.settings = settings
[ 84s] self.last_exception = None
[ 84s] self.falsifying_examples = ()
[ 84s] self.__was_flaky = False
[ 84s] self.random = random
[ 84s] self.__warned_deadline = False
[ 84s] self.__existing_collector = None
[ 84s] self.__test_runtime = None
[ 84s] self.__had_seed = had_seed
[ 84s]
[ 84s] self.test = test
[ 84s]
[ 84s] self.coverage_data = CoverageData()
[ 84s] self.files_to_propagate = set()
[ 84s] self.failed_normally = False
[ 84s]
[ 84s] self.used_examples_from_database = False
[ 84s]
[ 84s] if settings.use_coverage and not IN_COVERAGE_TESTS: # pragma: no cover
[ 84s] if Collector._collectors:
[ 84s] parent = Collector._collectors[-1]
[ 84s]
[ 84s] # We include any files the collector has already decided to
[ 84s] # trace whether or not on re-investigation we still think it
[ 84s] # wants to trace them. The reason for this is that in some
[ 84s] # cases coverage gets the wrong answer when we run it
[ 84s] # ourselves due to reasons that are our fault but are hard to
[ 84s] # fix (we lie about where certain functions come from).
[ 84s] # This causes us to not record the actual test bodies as
[ 84s] # covered. But if we intended to trace test bodies then the
[ 84s] # file must already have been traced when getting to this point
[ 84s] # and so will already be in the collector's data. Hence we can
[ 84s] # use that information to get the correct answer here.
[ 84s] # See issue 997 for more context.
[ 84s] self.files_to_propagate = set(parent.data)
[ 84s] self.hijack_collector(parent)
[ 84s]
[ 84s] self.collector = Collector(
[ 84s] branch=True,
[ 84s] timid=FORCE_PURE_TRACER,
[ 84s] should_trace=self.should_trace,
[ 84s] check_include=hypothesis_check_include,
[ 84s] concurrency='thread',
[ 84s] > warn=escalate_warning,
[ 84s] )
[ 84s] E TypeError: __init__() missing 2 required positional arguments: 'should_start_context' and 'file_mapper'
[ 84s]
[ 84s] /usr/lib/python3.7/site-packages/hypothesis/core.py:516: TypeError
[ 84s] _______________________________ test_convertyear _______________________________
[ 84s]
[ 84s] @pytest.mark.parserinfo
[ 84s] > @given(integers(min_value=100, max_value=9999))
[ 84s] def test_convertyear(n):
[ 84s]
[ 84s] dateutil/test/property/test_parser_prop.py:10:
[ 84s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 84s]
[ 84s] self = <hypothesis.core.StateForActualGivenExecution object at 0xfffd4137c390>
[ 84s] test_runner = <function default_new_style_executor at 0xfffd43596440>
[ 84s] search_strategy = tuples(just(()), fixed_dictionaries({'n': integers(min_value=100, max_value=9999)}).map(lambda args: dict(args, **kwargs)))
[ 84s] test = <function test_convertyear at 0xfffd42aeb560>
[ 84s] settings = settings(buffer_size=8192, database=DirectoryBasedExampleDatabase('/home/abuild/rpmbuild/BUILD/python-dateutil-2.8.1/....INFER: 1>, stateful_step_count=50, suppress_health_check=(), timeout=60, use_coverage=True, verbosity=Verbosity.normal)
[ 84s] random = <random.Random object at 0xaaac780ee5b0>, had_seed = None
[ 84s]
[ 84s] def __init__(
[ 84s] self, test_runner, search_strategy, test, settings, random, had_seed
[ 84s] ):
[ 84s] self.test_runner = test_runner
[ 84s] self.search_strategy = search_strategy
[ 84s] self.settings = settings
[ 84s] self.last_exception = None
[ 84s] self.falsifying_examples = ()
[ 84s] self.__was_flaky = False
[ 84s] self.random = random
[ 84s] self.__warned_deadline = False
[ 84s] self.__existing_collector = None
[ 84s] self.__test_runtime = None
[ 84s] self.__had_seed = had_seed
[ 84s]
[ 84s] self.test = test
[ 84s]
[ 84s] self.coverage_data = CoverageData()
[ 84s] self.files_to_propagate = set()
[ 84s] self.failed_normally = False
[ 84s]
[ 84s] self.used_examples_from_database = False
[ 84s]
[ 84s] if settings.use_coverage and not IN_COVERAGE_TESTS: # pragma: no cover
[ 84s] if Collector._collectors:
[ 84s] parent = Collector._collectors[-1]
[ 84s]
[ 84s] # We include any files the collector has already decided to
[ 84s] # trace whether or not on re-investigation we still think it
[ 84s] # wants to trace them. The reason for this is that in some
[ 84s] # cases coverage gets the wrong answer when we run it
[ 84s] # ourselves due to reasons that are our fault but are hard to
[ 84s] # fix (we lie about where certain functions come from).
[ 84s] # This causes us to not record the actual test bodies as
[ 84s] # covered. But if we intended to trace test bodies then the
[ 84s] # file must already have been traced when getting to this point
[ 84s] # and so will already be in the collector's data. Hence we can
[ 84s] # use that information to get the correct answer here.
[ 84s] # See issue 997 for more context.
[ 84s] self.files_to_propagate = set(parent.data)
[ 84s] self.hijack_collector(parent)
[ 84s]
[ 84s] self.collector = Collector(
[ 84s] branch=True,
[ 84s] timid=FORCE_PURE_TRACER,
[ 84s] should_trace=self.should_trace,
[ 84s] check_include=hypothesis_check_include,
[ 84s] concurrency='thread',
[ 84s] > warn=escalate_warning,
[ 84s] )
[ 84s] E TypeError: __init__() missing 2 required positional arguments: 'should_start_context' and 'file_mapper'
[ 84s]
[ 84s] /usr/lib/python3.7/site-packages/hypothesis/core.py:516: TypeError
[ 84s] ____________________ test_convertyear_no_specified_century _____________________
[ 84s]
[ 84s] @pytest.mark.parserinfo
[ 84s] > @given(integers(min_value=-50,
[ 84s] max_value=49))
[ 84s] def test_convertyear_no_specified_century(n):
[ 84s]
[ 84s] dateutil/test/property/test_parser_prop.py:16:
[ 84s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[ 84s]
[ 84s] self = <hypothesis.core.StateForActualGivenExecution object at 0xfffd415ea790>
[ 84s] test_runner = <function default_new_style_executor at 0xfffd43596440>
[ 84s] search_strategy = tuples(just(()), fixed_dictionaries({'n': integers(min_value=-50, max_value=49)}).map(lambda args: dict(args, **kwargs)))
[ 84s] test = <function test_convertyear_no_specified_century at 0xfffd42aeba70>
[ 84s] settings = settings(buffer_size=8192, database=DirectoryBasedExampleDatabase('/home/abuild/rpmbuild/BUILD/python-dateutil-2.8.1/....INFER: 1>, stateful_step_count=50, suppress_health_check=(), timeout=60, use_coverage=True, verbosity=Verbosity.normal)
[ 84s] random = <random.Random object at 0xaaac780c7260>, had_seed = None
[ 84s]
[ 84s] def __init__(
[ 84s] self, test_runner, search_strategy, test, settings, random, had_seed
[ 84s] ):
[ 84s] self.test_runner = test_runner
[ 84s] self.search_strategy = search_strategy
[ 84s] self.settings = settings
[ 84s] self.last_exception = None
[ 84s] self.falsifying_examples = ()
[ 84s] self.__was_flaky = False
[ 84s] self.random = random
[ 84s] self.__warned_deadline = False
[ 84s] self.__existing_collector = None
[ 84s] self.__test_runtime = None
[ 84s] self.__had_seed = had_seed
[ 84s]
[ 84s] self.test = test
[ 84s]
[ 84s] self.coverage_data = CoverageData()
[ 84s] self.files_to_propagate = set()
[ 84s] self.failed_normally = False
[ 84s]
[ 84s] self.used_examples_from_database = False
[ 84s]
[ 84s] if settings.use_coverage and not IN_COVERAGE_TESTS: # pragma: no cover
[ 84s] if Collector._collectors:
[ 84s] parent = Collector._collectors[-1]
[ 84s]
[ 84s] # We include any files the collector has already decided to
[ 84s] # trace whether or not on re-investigation we still think it
[ 84s] # wants to trace them. The reason for this is that in some
[ 84s] # cases coverage gets the wrong answer when we run it
[ 84s] # ourselves due to reasons that are our fault but are hard to
[ 84s] # fix (we lie about where certain functions come from).
[ 84s] # This causes us to not record the actual test bodies as
[ 84s] # covered. But if we intended to trace test bodies then the
[ 84s] # file must already have been traced when getting to this point
[ 84s] # and so will already be in the collector's data. Hence we can
[ 84s] # use that information to get the correct answer here.
[ 84s] # See issue 997 for more context.
[ 84s] self.files_to_propagate = set(parent.data)
[ 84s] self.hijack_collector(parent)
[ 84s]
[ 84s] self.collector = Collector(
[ 84s] branch=True,
[ 84s] timid=FORCE_PURE_TRACER,
[ 84s] should_trace=self.should_trace,
[ 84s] check_include=hypothesis_check_include,
[ 84s] concurrency='thread',
[ 84s] > warn=escalate_warning,
[ 84s] )
[ 84s] E TypeError: __init__() missing 2 required positional arguments: 'should_start_context' and 'file_mapper'
[ 84s]
[ 84s] /usr/lib/python3.7/site-packages/hypothesis/core.py:516: TypeError
[ 84s] ======== 3 failed, 2007 passed, 47 skipped, 19 xfailed in 9.36 seconds =========
[ 84s] error: Bad exit status from /var/tmp/rpm-tmp.ZZAKMf (%check)
[ 84s]
[ 84s]
[ 84s] RPM build errors:
[ 84s] Bad exit status from /var/tmp/rpm-tmp.ZZAKMf (%check)
[ 84s] + '[' 1 -ne 0 ']'
[ 84s] + exit 1
[ 84s]
[ 84s] armbuild192b168b175b2 failed "build python-dateutil.spec" at Wed Dec 14 06:12:05 UTC 2022.
[ 84s]