Skip to content

Commit 6ff65bc

Browse files
author
Kevin D Smith
authored
Merge pull request #33 from bosout/master
Modify test_view_sort to handle sorted views
2 parents 2495075 + df6a521 commit 6ff65bc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

swat/tests/cas/test_table.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4216,8 +4216,11 @@ def test_view_sort(self):
42164216
# Just run this to make sure it doesn't blow up
42174217
view.head()
42184218

4219-
with self.assertRaises(swat.SWATError):
4220-
sortview.head()
4219+
if self.server_version < (3, 5):
4220+
with self.assertRaises(swat.SWATError):
4221+
sortview.head()
4222+
else:
4223+
sortview.head()
42214224

42224225
def test_to_frame_ordering(self):
42234226
df = self.get_cars_df().sort_values(SORT_KEYS)

0 commit comments

Comments
 (0)