Skip to content

Commit ef3e35d

Browse files
committed
Fix Core tests to work with current package versions
1 parent 4b27e13 commit ef3e35d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Stoner/test_Core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ def test_constructor():
9797
d = selfd.clone
9898
df = d.to_pandas()
9999
e = Data(df)
100+
for bad_key in ["Loaded as","TDI Format"]: # These are non-vital keys that don't survice transfer
101+
d.pop(bad_key,None)
102+
e.pop(bad_key,None)
100103
assert d == e, "Roundtripping through Pandas DataFrame failed."
101104
d = selfd.clone
102105
e = Data(d.dict_records)
@@ -288,6 +291,8 @@ def test_dir():
288291
"__getstate__",
289292
"__static_attributes__",
290293
"__firstlineno__",
294+
'__annotate_func__',
295+
'__annotations_cache__',
291296
]
292297
)
293298
attrs = set(dir(selfd)) - bad_keys

0 commit comments

Comments
 (0)