diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-10-02 11:32:15 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-10-02 11:32:15 +0200 |
| commit | 8d1fae9e2bb03225c81ac1f0719408618d86eb52 (patch) | |
| tree | 88d47e498af87139f75bc963319243281b5bf92a /tests | |
| parent | 0f4f26bfee49b84fd41b46c1920cac6e5f6761c8 (diff) | |
| download | python-apt-8d1fae9e2bb03225c81ac1f0719408618d86eb52.tar.gz | |
merge patch from Barry to fix #1030278
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_lp1030278.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/test_lp1030278.py b/tests/test_lp1030278.py new file mode 100644 index 00000000..1cbc2c18 --- /dev/null +++ b/tests/test_lp1030278.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +"""Regression test for LP: #1030278""" + +__author__ = "Barry Warsaw <barry@ubuntu.com>" + +import unittest +import apt_pkg + + +class RegressionTestCase(unittest.TestCase): + + def test_no_overflow_error(self): + # LP: #1030278 produces an overflow error in size_to_str() with a big + # value under Python 3. + self.assertEqual(apt_pkg.size_to_str(2147483648000000000000), '2147 E') + + +if __name__ == "__main__": + unittest.main() + +# vim: ts=4 et sts=4 |
