Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1944109 - python-TestSlide fails to build with Python 3.10: AssertionError: TypeCheckError not raised
Summary: python-TestSlide fails to build with Python 3.10: AssertionError: TypeCheckEr...
Alias: None
Product: Fedora
Classification: Fedora
Component: python-TestSlide
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
Reported: 2021-03-29 10:05 UTC by Tomáš Hrnčiar
Modified: 2021-04-15 22:33 UTC (History)
5 users (show)

Fixed In Version: 2.6.4-4.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-04-15 22:33:11 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github facebook TestSlide issues 296 0 None open patch_attribute issue with Python 3.10 2021-03-30 17:20:25 UTC

Description Tomáš Hrnčiar 2021-03-29 10:05:29 UTC
python-TestSlide fails to build with Python 3.10.0a6.


  1) patch_attribute(), when target is a StrictMock, with a template, type validation: it fails if new value is of incompatible type
    1) AssertionError: TypeCheckError not raised
      File "testslide/", line 639, in run
      File "testslide/", line 623, in _run_example
        _ExampleRunner(example, self.formatter).run()
      File "testslide/", line 540, in run
      File "testslide/", line 512, in _sync_run_all_hooks_and_example
      File "testslide/", line 289, in raise_correct_exception
        raise self.exceptions[0]
      File "testslide/", line 273, in catch
      File "testslide/", line 503, in _sync_run_all_hooks_and_example
        self._fail_if_coroutine_function(self.example.code, context_data)
      File "testslide/", line 471, in _fail_if_coroutine_function
        return func(*args, **kwargs)
      File "tests/", line 119, in it_fails_if_new_value_is_of_incompatible_type
        self.patch_attribute(, "typedattr", 123)
      File "/usr/lib64/python3.10/unittest/", line 226, in __exit__
        self._raiseFailure("{} not raised".format(exc_name))
      File "/usr/lib64/python3.10/unittest/", line 163, in _raiseFailure
        raise self.test_case.failureException(msg)

Finished 46 example(s) in 1.0s 
  Successful:  45
  Failed:  1
  Not executed:  4
make: *** [Makefile:73: tests/] Error 1

For the build logs, see:

For all our attempts to build python-TestSlide with Python 3.10, see:

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Davide Cavalca 2021-03-30 17:20:28 UTC
Filed for upstream

Comment 2 Davide Cavalca 2021-04-15 22:33:11 UTC
This should be fixed in python-TestSlide-2.6.4-4.fc35

Note You need to log in before you can comment on or make changes to this bug.