File: 0001-make-test_version-more-lax-to-accept-non-git-hg-vers.patch

package info (click to toggle)
beancount 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,060 kB
  • sloc: python: 22,647; yacc: 753; ansic: 586; lex: 494; cpp: 44; makefile: 39
file content (22 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Stefano Zacchiroli <zack@debian.org>
Date: Sun, 30 Sep 2018 14:32:50 +0200
Subject: make test_version more lax to accept non git/hg versions

Last-Update: 2025-01-28
---
 beancount/parser/version_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/beancount/parser/version_test.py b/beancount/parser/version_test.py
index 2775824..c453c8c 100644
--- a/beancount/parser/version_test.py
+++ b/beancount/parser/version_test.py
@@ -9,7 +9,7 @@ from beancount.parser import version
 
 class TestVersion(unittest.TestCase):
     def test_version_exists(self):
-        self.assertRegex(getattr(beancount, "__version__", ""), r"\d+\.\d+\.\d+")
+        self.assertRegex(getattr(beancount, "__version__", ""), r"\d+\.\d+\.\d+.*")
 
     def test_compute_version_string(self):
         self.assertEqual(