Automate test skipping with @pytest.mark.skipif based on Python version
Preconditions (2)
Step 1: Create a test function decorated with @pytest.mark.skipif
Step 2: Set the skip condition to skip the test if Python version is less than 3.12
Step 3: Inside the test, assert that 1 + 1 equals 2
Step 4: Run the test using pytest
Step 5: Verify that the test is skipped if Python version is less than 3.12
Step 6: Verify that the test runs and passes if Python version is 3.12 or higher
✅ Expected Result: Test is skipped on Python versions below 3.12 and runs successfully on Python 3.12 or higher