File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 18
18
import tokenize
19
19
import ast
20
20
import numbers
21
- import pytest
22
21
from patsy import PatsyError
23
22
from patsy .util import PushbackAdapter , no_pickling , assert_no_pickling
24
23
from patsy .tokens import pretty_untokenize , normalize_token_spacing , python_tokenize
@@ -424,14 +423,15 @@ def test_EvalEnvironment_subset():
424
423
pytest .raises (NameError , subset_bc .eval , "a" )
425
424
426
425
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
- )
434
426
def 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
+
435
435
# Two environments are eq only if they refer to exactly the same
436
436
# global/local dicts
437
437
env1 = EvalEnvironment .capture (0 )
Original file line number Diff line number Diff line change @@ -32,3 +32,5 @@ commands=
32
32
pytest -vv --cov =patsy --cov-config ={toxinidir}/.coveragerc --cov-report =term-missing --cov-report =xml --cov-report =html:{toxworkdir}/coverage/{envname} {posargs:}
33
33
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:}
34
34
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