]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/t/tbloom.py
Use Python 3 compatible "except ... as e" syntax
[bup.git] / lib / bup / t / tbloom.py
index 467a1ccdcb1626dd70c11646438b5480853d63f2..25ef66105335d6e9b1578f2a5ae631a7d440154b 100644 (file)
@@ -45,7 +45,7 @@ def test_bloom():
     skip_test = False
     try:
         b = bloom.create('bup.bloom', f=tf, expected=2**28, delaywrite=False)
-    except EnvironmentError, ex:
+    except EnvironmentError as ex:
         (ptr_width, linkage) = platform.architecture()
         if ptr_width == '32bit' and ex.errno == errno.ENOMEM:
             WVMSG('skipping large bloom filter test (mmap probably failed) '