Skip to content

Commit

Permalink
Make sure tests still run with webassets <= 0.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
miracle2k committed Jul 15, 2011
1 parent d08af20 commit 4c5ba63
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_config.py
Expand Up @@ -4,11 +4,15 @@
from nose.tools import assert_raises
from flask import Flask, Module
from flaskext.assets import Environment, Bundle
from webassets.updater import BaseUpdater
try:
from webassets.updater import BaseUpdater
except ImportError:
BaseUpdater = None # older webassets versions (<=0.5)


class MooUpdater(BaseUpdater):
id = 'MOO'
if BaseUpdater:
class MooUpdater(BaseUpdater):
id = 'MOO'


class TestConfigAppBound:
Expand Down

0 comments on commit 4c5ba63

Please sign in to comment.