search for: filterwarnings

Displaying 3 results from an estimated 3 matches for "filterwarnings".

2019 Apr 24
0
[PATCH 3/3] python: silence usage of add_cdrom in test
...0HandleProperties(unittest.TestCase): @@ -44,4 +45,6 @@ class Test050HandleProperties(unittest.TestCase): def test_add_cdrom(self): g = guestfs.GuestFS(python_return_dict=True) - g.add_cdrom("/dev/zero") + with warnings.catch_warnings(): + warnings.filterwarnings("ignore", category=DeprecationWarning) + g.add_cdrom("/dev/zero") -- 2.20.1
2005 Oct 21
1
problems with tools/pygrub/setup.py and xen/xm/main.py
......") sys.stderr.write (" .... " ) ext2 = ... As workaround I simply deleted the entire if - else construct. Make worked then, but I suppose this is not a really satisfactory solution. My python version is 2.2 in xen/xm/main.py I got a problem with the line : warnings.filterwarnings(''ignore'', category=FutureWarning ); python complained about FutureWarning being an undefined name. Commenting this out resulted in code that seems to work properly. Peter Bier _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.co...
2019 Apr 24
4
[PATCH 0/3] Few minor changes for bindings
*** BLURB HERE *** Pino Toscano (3): python: modernize inspect_vm example perl: silence usage of add_cdrom in test python: silence usage of add_cdrom in test perl/t/060-handle-properties.t | 7 +++++-- python/examples/inspect_vm.py | 26 ++++++++++++-------------- python/t/test050HandleProperties.py | 5 ++++- 3 files changed, 21 insertions(+), 17 deletions(-) -- 2.20.1