Commits

Dave Abrahams committed 1697c3a

Make assertions more specific

  • Participants
  • Parent commits 935edcf

Comments (0)

Files changed (1)

File tests/test_file_scheme_index.py

     """
     env = reset_env()
     result = run_pip('install', '-vvv', '--index-url', index_url, 'FSPkg', expect_error=False)
-    site_packages = Path('site-packages')
-    assert [ x for x in result.files_created if x.endswith(site_packages/'fspkg') ], str(result)
-    assert [ x for x in result.files_created if x.endswith(site_packages/'FSPkg-0.1dev-py%s.egg-info' % pyversion) ], str(result)
+    assert (env.site_packages/'fspkg') in result.files_created, str(result.stdout)
+    assert (env.site_packages/'FSPkg-0.1dev-py%s.egg-info' % pyversion) in result.files_created, str(result)