(self)
| 435 | @unittest.skipUnless(hasattr(sys, "setdlopenflags"), |
| 436 | 'test needs sys.setdlopenflags()') |
| 437 | def test_dlopenflags(self): |
| 438 | self.assertHasAttr(sys, "getdlopenflags") |
| 439 | self.assertRaises(TypeError, sys.getdlopenflags, 42) |
| 440 | oldflags = sys.getdlopenflags() |
| 441 | self.assertRaises(TypeError, sys.setdlopenflags) |
| 442 | sys.setdlopenflags(oldflags+1) |
| 443 | self.assertEqual(sys.getdlopenflags(), oldflags+1) |
| 444 | sys.setdlopenflags(oldflags) |
| 445 | |
| 446 | @test.support.refcount_test |
| 447 | def test_refcount(self): |
nothing calls this directly
no test coverage detected