Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)

src/s/y/Sypy-HEAD/translator/oosupport/test_template/runtest.py   Sypy(Download)
    def test_patch_os(self):
        import os
        from pypy.translator.oosupport.support import patch_os, unpatch_os, NT_OS
        original_O_CREAT = os.O_CREAT
        olddefs = patch_os()
        assert os.O_CREAT == NT_OS['O_CREAT']

src/s/y/Sypy-HEAD/translator/oosupport/test_template/builtin.py   Sypy(Download)
    def test_os_flags(self):
        from pypy.translator.oosupport.support import NT_OS
        def fn():
            return os.O_CREAT
        assert self.interpret(fn, []) == NT_OS['O_CREAT']

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/oosupport/test_template/runtest.py   plexnet(Download)
    def test_patch_os(self):
        import os
        from pypy.translator.oosupport.support import patch_os, unpatch_os, NT_OS
        original_O_CREAT = os.O_CREAT
        olddefs = patch_os()
        assert os.O_CREAT == NT_OS['O_CREAT']

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/oosupport/test_template/builtin.py   plexnet(Download)
    def test_os_flags(self):
        from pypy.translator.oosupport.support import NT_OS
        def fn():
            return os.O_CREAT
        assert self.interpret(fn, []) == NT_OS['O_CREAT']