Permalink
Browse files

Skip new YAML dependent test without YAML.

Fixes certain test environments.
  • Loading branch information...
1 parent 71712bc commit af20ad35bbf976bcfe397f8d438756a866d04b92 @miracle2k committed Jun 5, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/test_script.py
View
@@ -9,6 +9,7 @@
import logging
from threading import Thread, Event
from nose.tools import assert_raises
+from nose import SkipTest
import time
from webassets import Bundle
@@ -311,7 +312,12 @@ def test_no_env(self):
def test_watch_config_file(self):
"""The watch command has an eye on the config file. This is an
extension to the base watch command."""
+ try:
+ import yaml
+ except EnvironmentError:
+ raise SkipTest()
import argparse
+
self.cmd_env = CommandLineEnvironment(self.env, logging)
self.cmd_env.commands['watch'] = \
GenericArgparseImplementation.WatchCommand(

0 comments on commit af20ad3

Please sign in to comment.