()
| 110 | |
| 111 | |
| 112 | def test_rejects_custom_properties(): |
| 113 | class BadProperty: |
| 114 | @property |
| 115 | def iloc(self): |
| 116 | return [None] |
| 117 | |
| 118 | series = BadProperty() |
| 119 | context = limited(data=series) |
| 120 | |
| 121 | with pytest.raises(GuardRejection): |
| 122 | guarded_eval("data.iloc[0]", context) |
| 123 | |
| 124 | |
| 125 | @dec.skip_without("pandas") |
nothing calls this directly
no test coverage detected
searching dependent graphs…