From 48f7386715971ff89ef75e9a668618e66aab661b Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Thu, 4 Nov 2021 11:31:56 +0330 Subject: [PATCH] fix : minor bug in matplotlib version fixed --- test/warning_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/warning_test.py b/test/warning_test.py index 8a103b4..248b2c2 100644 --- a/test/warning_test.py +++ b/test/warning_test.py @@ -17,7 +17,7 @@ True True >>> with open('data.json', 'w') as fp: ... json.dump({'data1': [0], 'data2': [0], 'matplotlib_version': '0'}, fp) ->>> with warns(RuntimeWarning, match="Source matplotlib version(0) is different from yours, plots may be different."): +>>> with warns(RuntimeWarning, match=r"Source matplotlib version(.*) is different from yours, plots may be different."): ... g = GenerativeImage(lambda x,y: 0, lambda x,y: 0, data=open('data.json', 'r')) >>> os.remove('data.json') """