Skip to content

Instantly share code, notes, and snippets.

@greenkey
Last active March 21, 2024 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenkey/8a17779ebca6164701819b7611f79696 to your computer and use it in GitHub Desktop.
Save greenkey/8a17779ebca6164701819b7611f79696 to your computer and use it in GitHub Desktop.
An issue I just discovered
import itertools
import pytest
def sum(a, b):
return a + b
def minimum(*numbers):
return min(numbers)
# Tests
@pytest.mark.parametrize("a, b", itertools.permutations([3, 4, 5], 2))
class TestF:
def test_sum(self, a, b):
assert sum(a, b) == a + b
# This test will be skipped, why?
def test_minimum(self, a, b):
assert minimum(a, b) == min(a, b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment