File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import tokenize
1919import ast
2020import numbers
21- import pytest
2221from patsy import PatsyError
2322from patsy .util import PushbackAdapter , no_pickling , assert_no_pickling
2423from patsy .tokens import pretty_untokenize , normalize_token_spacing , python_tokenize
@@ -424,14 +423,15 @@ def test_EvalEnvironment_subset():
424423 pytest .raises (NameError , subset_bc .eval , "a" )
425424
426425
427- @pytest .mark .skipif (
428- sys .version_info >= (3 , 13 ),
429- reason = (
430- "`frame.f_locals` may return write-through proxies in Python 3.13+, "
431- "breaking direct comparison by ids."
432- ),
433- )
434426def test_EvalEnvironment_eq ():
427+ import pytest
428+
429+ if sys .version_info >= (3 , 13 ):
430+ pytest .skip (
431+ "`frame.f_locals` may return write-through proxies in Python 3.13+, "
432+ "breaking direct comparison by ids."
433+ )
434+
435435 # Two environments are eq only if they refer to exactly the same
436436 # global/local dicts
437437 env1 = EvalEnvironment .capture (0 )
Original file line number Diff line number Diff line change @@ -32,3 +32,5 @@ commands=
3232 pytest -vv --cov =patsy --cov-config ={toxinidir}/.coveragerc --cov-report =term-missing --cov-report =xml --cov-report =html:{toxworkdir}/coverage/{envname} {posargs:}
3333 env PATSY_AVOID_OPTIONAL_DEPENDENCIES =1 pytest -vv --cov =patsy --cov-config ={toxinidir}/.coveragerc --cov-report =term-missing --cov-report =xml --cov-report =html:{toxworkdir}/coverage/{envname} {posargs:}
3434 python {toxinidir}/tools/check-API-refs.py
35+ python -m pip uninstall pytest -y
36+ python -c " import patsy; print(patsy.__version__)"
You can’t perform that action at this time.
0 commit comments