MCPcopy Index your code
hub / github.com/python/cpython / test_dlopenflags

Method test_dlopenflags

Lib/test/test_sys.py:437–444  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 3

assertHasAttrMethod · 0.80
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected