Skip to content

test(and_scalar): tag bitwise_and_scalar tests so pytest -m and_scalar collects - #6033

Merged
huangyiqun merged 1 commit into
flagos-ai:masterfrom
bin913:fix/5092-and-scalar-tests
Sep 7, 2026
Merged

test(and_scalar): tag bitwise_and_scalar tests so pytest -m and_scalar collects#6033
huangyiqun merged 1 commit into
flagos-ai:masterfrom
bin913:fix/5092-and-scalar-tests

Conversation

@bin913

@bin913 bin913 commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

PR Category

OP Test

Type of Change

  • Bug Fix
  • New Feature
  • Performance Optimization
  • Document
  • Code Refactoring
  • Test
  • CI/CD

Description

Issue #5092: pytest -m and_scalar --ref cpu selected 0 tests because the and_scalar operator (__and__.Scalar) had no pytest marker anywhere in tests/, and conf/ci_test_aliases.yaml pointed at a non-existent tests/test_bitwise_and.py.

The dunder op shares its implementation with the bitwise_and variants, so tag the existing bitwise_and_scalar test with @pytest.mark.and_scalar and repoint the alias at tests/test_bitwise_and_scalar.py.

Issue

Closes #5092

Progress

  • Add @pytest.mark.and_scalar to the bitwise_and_scalar tests
  • Fix the and_scalar alias to test_bitwise_and_scalar

Test Plan

python -m pytest -m and_scalar -svv --ref cpu now collects the bitwise_and_scalar cases instead of 0 selected.

…r collects

Issue flagos-ai#5092: `pytest -m and_scalar --ref cpu` selected 0 tests because the
and_scalar operator (__and__.Scalar) had no pytest marker anywhere in
tests/, and conf/ci_test_aliases.yaml pointed at a non-existent
tests/test_bitwise_and.py.

The dunder op shares its implementation with the bitwise_and variants, so
tag the existing bitwise_and_scalar test with @pytest.mark.and_scalar and
repoint the alias at tests/test_bitwise_and_scalar.py.

Closes flagos-ai#5092.
@bin913
bin913 force-pushed the fix/5092-and-scalar-tests branch from b44b672 to 864ecee Compare September 7, 2026 05:31
@huangyiqun huangyiqun self-assigned this Sep 7, 2026

@huangyiqun huangyiqun left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The alias and marker now point to the existing scalar tests.

@huangyiqun
huangyiqun merged commit f3821a8 into flagos-ai:master Sep 7, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Cannot find test cases for the and_scalar operator

2 participants