Verify the pretty-printing of frozensets
(self)
| 185 | |
| 186 | @support.requires_resource('cpu') |
| 187 | def test_frozensets(self): |
| 188 | 'Verify the pretty-printing of frozensets' |
| 189 | if GDB_VERSION < (7, 3): |
| 190 | self.skipTest("pretty-printing of frozensets needs gdb 7.3 or later") |
| 191 | self.assertGdbRepr(frozenset(), "frozenset()") |
| 192 | self.assertGdbRepr(frozenset(['a']), "frozenset({'a'})") |
| 193 | # PYTHONHASHSEED is need to get the exact frozenset item order |
| 194 | if not sys.flags.ignore_environment: |
| 195 | self.assertGdbRepr(frozenset(['a', 'b']), "frozenset({'a', 'b'})") |
| 196 | self.assertGdbRepr(frozenset([4, 5, 6]), "frozenset({4, 5, 6})") |
| 197 | |
| 198 | def test_exceptions(self): |
| 199 | # Test a RuntimeError |
nothing calls this directly
no test coverage detected