Skip to content
Snippets Groups Projects
Commit a7746594 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Mute expected warning about 10-character limit.

parent ee369e23
No related branches found
No related tags found
1 merge request!66Enhancement/fix unittest warnings
Pipeline #76836 passed
...@@ -111,7 +111,9 @@ class Test_Tie_Point_Grid(unittest.TestCase): ...@@ -111,7 +111,9 @@ class Test_Tie_Point_Grid(unittest.TestCase):
self.TPG.to_GCPList() self.TPG.to_GCPList()
def test_to_PointShapefile(self): def test_to_PointShapefile(self):
with warnings.catch_warnings(): with (pytest.warns(UserWarning, match='.*Column names longer than 10 characters will be truncated.*'),
warnings.catch_warnings()
):
warnings.filterwarnings("ignore", message=".*recognized as too large to be valid.*") warnings.filterwarnings("ignore", message=".*recognized as too large to be valid.*")
tbl = self.TPG.CoRegPoints_table tbl = self.TPG.CoRegPoints_table
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment