Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
ignore absence of gtk when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Frasca committed Jan 2, 2015
1 parent 6fc0890 commit d8194f0
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
8 changes: 6 additions & 2 deletions bauble/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
import traceback
import weakref

try:
import gtk
import gobject
except:
from bauble.fake_gtk import gtk, gobject

import dateutil.parser as date_parser
import gtk
import gobject
import lxml.etree as etree
import pango
from sqlalchemy import *
Expand Down
6 changes: 1 addition & 5 deletions bauble/pluginmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
try:
import gtk
except:
class fake:
MESSAGE_ERROR = ''
MESSAGE_WARNING = ''
VBox = object
gtk = fake()
from bauble.fake_gtk import gtk

from sqlalchemy import *
from sqlalchemy.orm import *
Expand Down
6 changes: 5 additions & 1 deletion bauble/plugins/plants/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
import traceback
import weakref

import gtk
try:
import gtk
except:
from bauble.fake_gtk import gtk

from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.orm.session import object_session
Expand Down
6 changes: 5 additions & 1 deletion bauble/plugins/plants/genus.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
import weakref
import xml

import gtk
try:
import gtk
except:
from bauble.fake_gtk import gtk

from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.orm.session import object_session
Expand Down
6 changes: 5 additions & 1 deletion bauble/plugins/plants/species_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
import xml.sax.saxutils as sax
from itertools import chain

import gtk
try:
import gtk
except:
from bauble.fake_gtk import gtk

from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.orm.session import object_session
Expand Down
8 changes: 6 additions & 2 deletions bauble/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
import sys
import traceback

import gtk
import gobject

try:
import gtk
import gobject
except:
from bauble.fake_gtk import gtk, gobject

import bauble
import bauble.db as db
Expand Down

0 comments on commit d8194f0

Please sign in to comment.