# Path: wimpiggy/util.py
# class AutoPropGObjectMixin(object):
# class AdHocStruct(object):
#     def __init__(self):
#     def _munge_property_name(self, name):
#     def do_get_property(self, pspec):
#     def do_set_property(self, pspec, value):
#     def _internal_set_property(self, name, value):
# def dump_exc():
#     def __repr__(self):
# def n_arg_signal(n):
# def non_none_list_accumulator(ihint, return_accu, handler_return):
# def gtk_main_quit_really():
#     def gtk_main_quit_forever():
# def gtk_main_quit_on_fatal_exceptions_enable():
#     def gtk_main_quit_on_fatal_exception(type, val, tb):


import subprocess
import sys
import os
import traceback
import os
import atexit
import errno
import gobject
import gtk
import gtk.gdk
from wimpiggy.util import one_arg_signal
# This file is part of Parti.
# Copyright (C) 2008, 2009 Nathaniel Smith <njs@pobox.com>
# Parti is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.


# Skip contents of this file when looking for tests
__test__ = False

def assert_raises(exc_class, f, *args, **kwargs):
    # exc_class can be a tuple.
    try:
        value = f(*args, **kwargs)
    except exc_class:
        pass
    except:
        (cls, e, tb) = sys.exc_info()
        raise AssertionError, (("unexpected exception: %s: %s\n"
                               + "Original traceback:\n%s")
                               % (cls, e, traceback.format_exc()))

# Path: wimpiggy/util.py
# class AutoPropGObjectMixin(object):
# class AdHocStruct(object):
#     def __init__(self):
#     def _munge_property_name(self, name):
#     def do_get_property(self, pspec):
#     def do_set_property(self, pspec, value):
#     def _internal_set_property(self, name, value):
# def dump_exc():
#     def __repr__(self):
# def n_arg_signal(n):
# def non_none_list_accumulator(ihint, return_accu, handler_return):
# def gtk_main_quit_really():
#     def gtk_main_quit_forever():
# def gtk_main_quit_on_fatal_exceptions_enable():
#     def gtk_main_quit_on_fatal_exception(type, val, tb):


# Path: wimpiggy/test.py
import subprocess
import sys
import os
import traceback
import os
import atexit
import errno
import gobject
import gtk
import gtk.gdk
from wimpiggy.util import one_arg_signal

# This file is part of Parti.
# Copyright (C) 2008, 2009 Nathaniel Smith <njs@pobox.com>
# Parti is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.


# Skip contents of this file when looking for tests
__test__ = False

def assert_raises(exc_class, f, *args, **kwargs):
    # exc_class can be a tuple.
    try:
        value = f(*args, **kwargs)
    except exc_class:
        pass
    except:
        (cls, e, tb) = sys.exc_info()
        raise AssertionError, (("unexpected exception: %s: %s\n"
                               + "Original traceback:\n%s")
                               % (cls, e, traceback.format_exc()))

    else: