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 2d9d8dc commit 16d0fb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
5 changes: 1 addition & 4 deletions bauble/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
try:
import gtk
except:
class fake:
MESSAGE_ERROR = ''

gtk = fake()
from bauble.fake_gtk import gtk

import sqlalchemy.orm as orm
from sqlalchemy.ext.declarative import declarative_base, DeclarativeMeta
Expand Down
5 changes: 1 addition & 4 deletions bauble/prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
try:
import gtk
except:
class fake:
pass

gtk = fake()
from bauble.fake_gtk import gtk

import bauble
import bauble.db as db
Expand Down
11 changes: 3 additions & 8 deletions bauble/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,10 @@

try:
import gtk
import gobject
except:
class fake:
MESSAGE_ERROR = ''
MESSAGE_WARNING = ''
VBox = object
Action = Expander = ScrolledWindow = object
gtk = fake()

import gobject
from bauble.fake_gtk import gtk, gobject

import pango
from pyparsing import *
from sqlalchemy import *
Expand Down

0 comments on commit 16d0fb9

Please sign in to comment.