title: How do I make pytest fixtures work with decorated functions?
body: <p>py.test seems to fail when I decorate test functions which has a fixture as an argument.</p>
  
  <pre><code>def deco(func):
  
      @functools.wraps(func)
      def wrapper(*args, **kwargs):
          return func(*args, **kwargs)
  
      return wrapper
  
  
  @pytest.fixture
  def x():
      return 0
  
  @deco
  def test_something(x):
      assert x == 0
  </code></pre>
  
  <p>In this simple example, I get the following error:</p>
  
  <pre><code>TypeError: test_something() takes exactly 1 argument (0 given).
  </code></pre>
  
  <p>Is there a way to fix this, preferably without modifying the decorator too much? (Since the decorator is used outside testing code too.)</p>