def test_system(): """Test system physical memory usage.""" if os.name == 'nt': # windll can only be imported if os.name = 'nt' or 'ce' assert windows_memory_usage() > 0 else: assert memory_usage() > 0
def test_system(): """Test system physical memory usage.""" if os.name == 'nt': # windll can only be imported if os.name = 'nt' or 'ce' assert windows_memory_usage() > 0 else: assert memory_usage() > 0
def get_value(self): """Return memory usage.""" from spyder.utils.system import memory_usage text = '%d%%' % memory_usage() return 'Mem ' + text.rjust(3)
def get_value(self): """Return memory usage.""" text = '%d%%' % memory_usage() return 'Mem ' + text.rjust(3)
def get_value(self): """Return memory usage.""" from spyder.utils.system import memory_usage text = '%d%%' % memory_usage() return 'Mem ' + text.rjust(3)
def get_value(self): """Return memory usage""" from spyder.utils.system import memory_usage return memory_usage()
def get_value(self): """Return memory usage.""" from spyder.utils.system import memory_usage return memory_usage()