ra.py
unittest TestCase cleanup contextPython unittest TestCase marker
SHA-2568bc73de3443905e77ca98191df4a9c01ac141dbb115801b245d46673ecc65c84
MaleculeH₂(Cm₂F)Md₂(InPa)
Evidence
1#
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance
9# with the License. You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing,
14# software distributed under …
16:55… r the
17# specific language governing permissions and limitations
18# under the License.
19#
20#
21import unittest, setup_path
22
23from svn import core, repos, fs, delta, ra
24from sys import version_info # For Python version check
25from io import BytesIO
26
27import utils
28
29class SubversionRepositoryAccessTestCase(unittest.TestCase):
30 """Test cases for the Subversion repository layer"""
31
⋯4 lines
45:7… lf.ra_ctx = ra.open2(self.repos_uri, self.callbacks, {})
46
47 def tearDown(self):
48 self.ra_ctx = None
49 self.fs = None
⋯6 lines
170:44… pool)
171 elif path in to_add:
172 file_baton = editor.add_file(path, parent,
173 None, -1, # copyfrom
174 pool)
175 # …
193:26… (edit_baton)
194 except:
195 # We already have an exception in progress, not much we can do
196 # about this.
197 pass
198 raise
199 …