How to use the pyalpm.options.arch function in pyalpm

To help you get started, we’ve selected a few pyalpm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github archlinux / pyalpm / tests / options.py View on Github external
def test_string(self):
        "Test getter/setters for string options"
        pyalpm.options.arch = 'i686'
        self.assertEqual(pyalpm.options.arch, 'i686')
        with self.assertRaises(TypeError):
            pyalpm.options.arch = ["i686"]
github archlinux / pyalpm / tests / options.py View on Github external
def test_string(self):
        "Test getter/setters for string options"
        pyalpm.options.arch = 'i686'
        self.assertEqual(pyalpm.options.arch, 'i686')
        with self.assertRaises(TypeError):
            pyalpm.options.arch = ["i686"]
github archlinux / pyalpm / tests / options.py View on Github external
def test_arch(self):
        with self.assertRaises(pyalpm.error):
            pyalpm.options.arch = "i686"
        with self.assertRaises(pyalpm.error):
            s = pyalpm.options.arch
github archlinux / pyalpm / tests / options.py View on Github external
def test_arch(self):
        with self.assertRaises(pyalpm.error):
            pyalpm.options.arch = "i686"
        with self.assertRaises(pyalpm.error):
            s = pyalpm.options.arch
github archlinux / pyalpm / tests / options.py View on Github external
def test_string(self):
        "Test getter/setters for string options"
        pyalpm.options.arch = 'i686'
        self.assertEqual(pyalpm.options.arch, 'i686')
        with self.assertRaises(TypeError):
            pyalpm.options.arch = ["i686"]