• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 John McGehee
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15"""This module is for testing pyfakefs
16:py:class:`fake_filesystem_unittest.Patcher`.  It defines attributes that have
17the same names as file modules, sudh as 'io` and `path`.  Since these are not
18modules, :py:class:`fake_filesystem_unittest.Patcher` should not patch them.
19
20Whenever a new module is added to
21:py:meth:`fake_filesystem_unittest.Patcher._findModules`, the corresponding
22attribute should be added here and in the test
23:py:class:`fake_filesystem_unittest_test.TestAttributesWithFakeModuleNames`.
24"""
25
26os = "os attribute value"
27path = "path attribute value"
28pathlib = "pathlib attribute value"
29shutil = "shutil attribute value"
30io = "io attribute value"
31