Python _ctypes.set_conversion_mode() Examples

The following are 20 code examples of _ctypes.set_conversion_mode(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module _ctypes , or try the search function .
Example #1
Source File: test_parameters.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #2
Source File: test_parameters.py    From android_universal with MIT License 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #3
Source File: test_parameters.py    From android_universal with MIT License 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #4
Source File: test_parameters.py    From odoo13-x64 with GNU General Public License v3.0 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #5
Source File: test_parameters.py    From odoo13-x64 with GNU General Public License v3.0 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #6
Source File: test_parameters.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #7
Source File: test_parameters.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #8
Source File: test_parameters.py    From datafari with Apache License 2.0 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #9
Source File: test_parameters.py    From datafari with Apache License 2.0 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #10
Source File: test_parameters.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #11
Source File: test_parameters.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #12
Source File: test_parameters.py    From Imogen with MIT License 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #13
Source File: test_parameters.py    From Imogen with MIT License 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #14
Source File: test_parameters.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #15
Source File: test_parameters.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #16
Source File: test_parameters.py    From oss-ftp with MIT License 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #17
Source File: test_parameters.py    From oss-ftp with MIT License 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #18
Source File: test_parameters.py    From BinderFilter with MIT License 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode) 
Example #19
Source File: test_parameters.py    From BinderFilter with MIT License 5 votes vote down vote up
def setUp(self):
        import ctypes
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            self.prev_conv_mode = set_conversion_mode("ascii", "strict") 
Example #20
Source File: test_parameters.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def tearDown(self):
        try:
            from _ctypes import set_conversion_mode
        except ImportError:
            pass
        else:
            set_conversion_mode(*self.prev_conv_mode)