We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fail to run the tests
Another problem I have when building the RPM is when I try to run the tests. This is in a minimal build environment, so maybe some library is missing. I have tried to use PYTHONPATH like in issue #291 but with no success.

Could you help me?

```
+ /usr/bin/python2 setup.py test
running test
running egg_info
writing requirements to fake_factory.egg-info/requires.txt
writing fake_factory.egg-info/PKG-INFO
writing top-level names to fake_factory.egg-info/top_level.txt
writing dependency_links to fake_factory.egg-info/dependency_links.txt
writing entry points to fake_factory.egg-info/entry_points.txt
reading manifest file 'fake_factory.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.md'
writing manifest file 'fake_factory.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 58, in <module>
    ':python_version=="3.0"': ['importlib'],
  File "/usr/lib64/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 142, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 122, in with_project_on_sys_path
    func()
  File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 163, in run_tests
    testRunner=self._resolve_as_ep(self.test_runner),
  File "/usr/lib64/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib64/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib64/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib64/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python2.7/unittest/loader.py", line 100, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'tests'
```


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 #!/usr/bin/env python
2 # coding=utf-8
3 
4 import os
5 import io
6 from setuptools import setup, find_packages
7 
8 here = os.path.abspath(os.path.dirname(__file__))
9 README = io.open(os.path.join(here, 'README.rst'), encoding="utf8").read()
10 NEWS = io.open(os.path.join(here, 'CHANGELOG.rst'), encoding="utf8").read()
11 
12 
13 version = '0.5.3'
14 
15 # this module can be zip-safe if the zipimporter implements iter_modules or if
16 # pkgutil.iter_importer_modules has registered a dispatch for the zipimporter.
17 try:
18     import pkgutil
19     import zipimport
20     zip_safe = hasattr(zipimport.zipimporter, "iter_modules") or \
21         zipimport.zipimporter in pkgutil.iter_importer_modules.registry.keys()
22 except (ImportError, AttributeError):
23     zip_safe = False
24 
25 setup(
26     name='fake-factory',
27     version=version,
28     description="Faker is a Python package that generates fake data for you.",
29     long_description=README + '\n\n' + NEWS,
30     entry_points={
31         'console_scripts': ['faker=faker.cli:execute_from_command_line'],
32     },
33     classifiers=[
34         # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
35         'Development Status :: 3 - Alpha',
36         'Environment :: Console',
37         'Intended Audience :: Developers',
38         'Programming Language :: Python',
39         'Programming Language :: Python :: 2',
40         'Programming Language :: Python :: 3',
41         'Programming Language :: Python :: 3.4',
42         'Topic :: Software Development :: Libraries :: Python Modules',
43         'Topic :: Software Development :: Testing',
44         'Topic :: Utilities',
45         'License :: OSI Approved :: MIT License'
46     ],
47     keywords='faker fixtures data test mock generator',
48     author='joke2k',
49     author_email='joke2k@gmail.com',
50     url='http://github.com/joke2k/faker',
51     license='MIT License',
52     packages=find_packages(exclude=['*.tests']),
53     platforms=["any"],
54     test_suite='faker.tests',
55     zip_safe=zip_safe,
56     extras_require={
57         ':python_version=="2.6"': ['importlib'],
58         ':python_version=="3.0"': ['importlib'],
59     }
60 )
61
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@
     author_email='joke2k@gmail.com',
     url='http://github.com/joke2k/faker',
     license='MIT License',
-    packages=find_packages(exclude=['*.tests']),
+    packages=find_packages(),
     platforms=["any"],
     test_suite='faker.tests',
     zip_safe=zip_safe,

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -49,7 +49,7 @@\n     author_email='joke2k@gmail.com',\n     url='http://github.com/joke2k/faker',\n     license='MIT License',\n-    packages=find_packages(exclude=['*.tests']),\n+    packages=find_packages(),\n     platforms=[\"any\"],\n     test_suite='faker.tests',\n     zip_safe=zip_safe,\n", "issue": "Fail to run the tests\nAnother problem I have when building the RPM is when I try to run the tests. This is in a minimal build environment, so maybe some library is missing. I have tried to use PYTHONPATH like in issue #291 but with no success.\n\nCould you help me?\n\n```\n+ /usr/bin/python2 setup.py test\nrunning test\nrunning egg_info\nwriting requirements to fake_factory.egg-info/requires.txt\nwriting fake_factory.egg-info/PKG-INFO\nwriting top-level names to fake_factory.egg-info/top_level.txt\nwriting dependency_links to fake_factory.egg-info/dependency_links.txt\nwriting entry points to fake_factory.egg-info/entry_points.txt\nreading manifest file 'fake_factory.egg-info/SOURCES.txt'\nreading manifest template 'MANIFEST.in'\nwarning: no files found matching '*.md'\nwriting manifest file 'fake_factory.egg-info/SOURCES.txt'\nrunning build_ext\nTraceback (most recent call last):\n  File \"setup.py\", line 58, in <module>\n    ':python_version==\"3.0\"': ['importlib'],\n  File \"/usr/lib64/python2.7/distutils/core.py\", line 151, in setup\n    dist.run_commands()\n  File \"/usr/lib64/python2.7/distutils/dist.py\", line 953, in run_commands\n    self.run_command(cmd)\n  File \"/usr/lib64/python2.7/distutils/dist.py\", line 972, in run_command\n    cmd_obj.run()\n  File \"/usr/lib/python2.7/site-packages/setuptools/command/test.py\", line 142, in run\n    self.with_project_on_sys_path(self.run_tests)\n  File \"/usr/lib/python2.7/site-packages/setuptools/command/test.py\", line 122, in with_project_on_sys_path\n    func()\n  File \"/usr/lib/python2.7/site-packages/setuptools/command/test.py\", line 163, in run_tests\n    testRunner=self._resolve_as_ep(self.test_runner),\n  File \"/usr/lib64/python2.7/unittest/main.py\", line 94, in __init__\n    self.parseArgs(argv)\n  File \"/usr/lib64/python2.7/unittest/main.py\", line 149, in parseArgs\n    self.createTests()\n  File \"/usr/lib64/python2.7/unittest/main.py\", line 158, in createTests\n    self.module)\n  File \"/usr/lib64/python2.7/unittest/loader.py\", line 130, in loadTestsFromNames\n    suites = [self.loadTestsFromName(name, module) for name in names]\n  File \"/usr/lib64/python2.7/unittest/loader.py\", line 100, in loadTestsFromName\n    parent, obj = obj, getattr(obj, part)\nAttributeError: 'module' object has no attribute 'tests'\n```\n\n", "before_files": [{"content": "#!/usr/bin/env python\n# coding=utf-8\n\nimport os\nimport io\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = io.open(os.path.join(here, 'README.rst'), encoding=\"utf8\").read()\nNEWS = io.open(os.path.join(here, 'CHANGELOG.rst'), encoding=\"utf8\").read()\n\n\nversion = '0.5.3'\n\n# this module can be zip-safe if the zipimporter implements iter_modules or if\n# pkgutil.iter_importer_modules has registered a dispatch for the zipimporter.\ntry:\n    import pkgutil\n    import zipimport\n    zip_safe = hasattr(zipimport.zipimporter, \"iter_modules\") or \\\n        zipimport.zipimporter in pkgutil.iter_importer_modules.registry.keys()\nexcept (ImportError, AttributeError):\n    zip_safe = False\n\nsetup(\n    name='fake-factory',\n    version=version,\n    description=\"Faker is a Python package that generates fake data for you.\",\n    long_description=README + '\\n\\n' + NEWS,\n    entry_points={\n        'console_scripts': ['faker=faker.cli:execute_from_command_line'],\n    },\n    classifiers=[\n        # See https://pypi.python.org/pypi?%3Aaction=list_classifiers\n        'Development Status :: 3 - Alpha',\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n        'Topic :: Software Development :: Testing',\n        'Topic :: Utilities',\n        'License :: OSI Approved :: MIT License'\n    ],\n    keywords='faker fixtures data test mock generator',\n    author='joke2k',\n    author_email='joke2k@gmail.com',\n    url='http://github.com/joke2k/faker',\n    license='MIT License',\n    packages=find_packages(exclude=['*.tests']),\n    platforms=[\"any\"],\n    test_suite='faker.tests',\n    zip_safe=zip_safe,\n    extras_require={\n        ':python_version==\"2.6\"': ['importlib'],\n        ':python_version==\"3.0\"': ['importlib'],\n    }\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n# coding=utf-8\n\nimport os\nimport io\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = io.open(os.path.join(here, 'README.rst'), encoding=\"utf8\").read()\nNEWS = io.open(os.path.join(here, 'CHANGELOG.rst'), encoding=\"utf8\").read()\n\n\nversion = '0.5.3'\n\n# this module can be zip-safe if the zipimporter implements iter_modules or if\n# pkgutil.iter_importer_modules has registered a dispatch for the zipimporter.\ntry:\n    import pkgutil\n    import zipimport\n    zip_safe = hasattr(zipimport.zipimporter, \"iter_modules\") or \\\n        zipimport.zipimporter in pkgutil.iter_importer_modules.registry.keys()\nexcept (ImportError, AttributeError):\n    zip_safe = False\n\nsetup(\n    name='fake-factory',\n    version=version,\n    description=\"Faker is a Python package that generates fake data for you.\",\n    long_description=README + '\\n\\n' + NEWS,\n    entry_points={\n        'console_scripts': ['faker=faker.cli:execute_from_command_line'],\n    },\n    classifiers=[\n        # See https://pypi.python.org/pypi?%3Aaction=list_classifiers\n        'Development Status :: 3 - Alpha',\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.4',\n        'Topic :: Software Development :: Libraries :: Python Modules',\n        'Topic :: Software Development :: Testing',\n        'Topic :: Utilities',\n        'License :: OSI Approved :: MIT License'\n    ],\n    keywords='faker fixtures data test mock generator',\n    author='joke2k',\n    author_email='joke2k@gmail.com',\n    url='http://github.com/joke2k/faker',\n    license='MIT License',\n    packages=find_packages(),\n    platforms=[\"any\"],\n    test_suite='faker.tests',\n    zip_safe=zip_safe,\n    extras_require={\n        ':python_version==\"2.6\"': ['importlib'],\n        ':python_version==\"3.0\"': ['importlib'],\n    }\n)\n", "path": "setup.py"}]}