nvda
e6fa0583 - Unittests/Python 3: update syntax, catch unbound method registration test in extension points as expected failure (#9726)

Commit
6 years ago
Unittests/Python 3: update syntax, catch unbound method registration test in extension points as expected failure (#9726) * Unittest/Python 3: update copyright years. Re #9720. * Unittest/test driver/Python 3: no more unicode/decoding, proper relative import. Re #9720. * Unittest/base object tests/Python 3: proper relative import. Re #9720. * Unittest/braille tests/Python 3: proper relative import. Re #9720. * Unittest/braille tables/Python 3: dict.itervalues -> dict.values. Re #9720. * Unittest/control types/Python 3: dict.iteritems -> dict.items. Re #9720. * Unittest/text provider/Python 3: just use text as given instead of converting it into Unicode first. Re #9720. * Unittest/script handler/Python 3: assertItemsEqual -> assertCountEqual. Re #9720. Python 2's unittest documentation states self.assertItemsEqual is replaced by self.assertCountEqual in Python 3, thus follow this directive. * Unittest/extension points/Python 3: mark unbound method registration test as expected failure. Re #9720. For some reason unbound method registration test keeps failing in Python 3. Until this is resolved, mark this test as expected failure. * Unittest/base object/Python 3: self.assertRaisesRegexp -> self.assertRaisesRegex due to deprecation warning. Re #9720. * Unittests/review action: remove unnecessary comments. Re #9720. * Unittests/control types: contorlTypes.__dict__ -> vars(contorlTypes). Re #9720. * Extension points/util: add a comment about failing unittest. Re #9720.
Author
Committer
Parents
Loading