Did I find the right examples for you? yes no

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

src/p/s/psutil-2.1.1/test/test_psutil.py   psutil(Download)
    def test_ionice(self):
        if LINUX:
            from psutil import (IOPRIO_CLASS_NONE, IOPRIO_CLASS_RT,
                                IOPRIO_CLASS_BE, IOPRIO_CLASS_IDLE)
            self.assertEqual(IOPRIO_CLASS_NONE, 0)
                self.assertRaises(ValueError, p.ionice, 2, 10)
            finally:
                p.ionice(IOPRIO_CLASS_NONE)
        else:
            p = psutil.Process()

src/p/s/psutil-HEAD/test/test_psutil.py   psutil(Download)
    def test_get_set_ionice(self):
        from psutil import (IOPRIO_CLASS_NONE, IOPRIO_CLASS_RT, IOPRIO_CLASS_BE,
                            IOPRIO_CLASS_IDLE)
        self.assertEqual(IOPRIO_CLASS_NONE, 0)
        self.assertEqual(IOPRIO_CLASS_RT, 1)
            self.assertRaises(ValueError, p.set_ionice, 2, 10)
        finally:
            p.set_ionice(IOPRIO_CLASS_NONE)
 
    def test_get_num_threads(self):

src/p/s/psutil-HEAD/test/test_memory_leaks.py   psutil(Download)
    def test_set_ionice(self):
        self.execute('set_ionice', psutil.IOPRIO_CLASS_NONE)
 
    def test_username(self):
        self.execute('username')

src/p/s/psutil-2.1.1/test/test_memory_leaks.py   psutil(Download)
            self.execute('set_ionice', value)
        else:
            self.execute('set_ionice', psutil.IOPRIO_CLASS_NONE)
 
    def test_username(self):