summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 11:34:04 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 11:34:04 (GMT)
commit8b905bd9d40f0545e054737b8796a18366546ffc (patch)
treeb2b62946432510b703420013a926d7a5155ade25 /Lib/test/test_posix.py
parente0be4232971edca23438cc3d79761141f2de124f (diff)
downloadcpython-8b905bd9d40f0545e054737b8796a18366546ffc.zip
cpython-8b905bd9d40f0545e054737b8796a18366546ffc.tar.gz
cpython-8b905bd9d40f0545e054737b8796a18366546ffc.tar.bz2
Issue #13226: Add RTLD_xxx constants to the os module. These constants can by
used with sys.setdlopenflags().
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index f70688d..c8d0859 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -984,6 +984,13 @@ class PosixTester(unittest.TestCase):
self.assertIs(b, l)
self.assertEqual(l.count(), 3)
+ def test_rtld_constants(self):
+ # check presence of major RTLD_* constants
+ posix.RTLD_LAZY
+ posix.RTLD_NOW
+ posix.RTLD_GLOBAL
+ posix.RTLD_LOCAL
+
class PosixGroupsTester(unittest.TestCase):
def setUp(self):