[Python-checkins] r58167 - sandbox/trunk/import_in_py/tests/test_fs_importer.py

brett.cannon python-checkins at python.org
Mon Sep 17 00:26:29 CEST 2007


Author: brett.cannon
Date: Mon Sep 17 00:26:28 2007
New Revision: 58167

Modified:
   sandbox/trunk/import_in_py/tests/test_fs_importer.py
Log:
Use floor division.


Modified: sandbox/trunk/import_in_py/tests/test_fs_importer.py
==============================================================================
--- sandbox/trunk/import_in_py/tests/test_fs_importer.py	(original)
+++ sandbox/trunk/import_in_py/tests/test_fs_importer.py	Mon Sep 17 00:26:28 2007
@@ -136,8 +136,8 @@
         # Case-sensitivity should always matter as long as PYTHONCASEOK is not
         # set.
         name_len = len(self.top_level_module_name)
-        bad_case_name = (self.top_level_module_name[:name_len/2].upper() +
-                            self.top_level_module_name[name_len/2:].lower())
+        bad_case_name = (self.top_level_module_name[:name_len//2].upper() +
+                            self.top_level_module_name[name_len//2:].lower())
         env_guard = test_support.EnvironmentVarGuard()
         env_guard.unset('PYTHONCASEOK')
         with env_guard:


More information about the Python-checkins mailing list