How to use the pyalpm.options 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_paths_wrong_type(self):
        opts = pyalpm.options
        with self.assertRaises(TypeError):
            opts.root = 3
        with self.assertRaises(TypeError):
            opts.dbpath = 3
        with self.assertRaises(TypeError):
            opts.logfile = 3
github archlinux / pyalpm / tests / options.py View on Github external
def test_logfile(self):
        opts = pyalpm.options
        with self.assertRaises(pyalpm.error):
            opts.logfile = "/var/log/pacman.log"
        with self.assertRaises(pyalpm.error):
            s = opts.logfile